diff options
author | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-03-09 15:09:46 +0100 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-03-15 18:18:01 +0100 |
commit | 11ae4b70a164ee2d7d9894302b12574773a3e57b (patch) | |
tree | dda07540eb26fc93fbfc6c4a0ebe6da4fee74715 /tests/auto/corelib/io/qfilesystementry | |
parent | 2f3f3eb0d4d77743c135d95c792f66a4272903f7 (diff) |
Fix tst_qfilesystementry in unity build
Previous setup of the test was failing in minimal static build if built
using the unity build because of the explicit inclusion of the qtcore
source files. By removing them, it surfaced that QFileSystemEntry
doesn't export all its necessary symbols for testing. So this patch does
that, as well as removing the qtcore sources from the test. It also
makes sense to make the test private.
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: Icdabe32485b7ce4ed6049bcc24918f531406b4bd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/corelib/io/qfilesystementry')
-rw-r--r-- | tests/auto/corelib/io/qfilesystementry/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/corelib/io/qfilesystementry/CMakeLists.txt b/tests/auto/corelib/io/qfilesystementry/CMakeLists.txt index 47c5a38d65..570f457224 100644 --- a/tests/auto/corelib/io/qfilesystementry/CMakeLists.txt +++ b/tests/auto/corelib/io/qfilesystementry/CMakeLists.txt @@ -7,9 +7,8 @@ qt_internal_add_test(tst_qfilesystementry SOURCES - ../../../../../src/corelib/io/qfilesystementry.cpp - ../../../../../src/corelib/io/qfilesystementry_p.h tst_qfilesystementry.cpp LIBRARIES Qt::CorePrivate + Qt::TestPrivate ) |