summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qapplication/test
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2018-06-28 08:43:42 +0200
committerOliver Wolff <oliver.wolff@qt.io>2018-06-28 15:44:01 +0000
commit030eddd1730f2cb2b175cb02e3848094ad74d22f (patch)
treea888465bcc8e1a8006b53b64a69b5ed21fce7bd0 /tests/auto/widgets/kernel/qapplication/test
parent63f78e41dc75656efef9531c438df6356534162d (diff)
tst_qapplication: Fix execution for WinRT
Not putting executables into debug/release subdirectories leads to the WinRT AppxManifest being overwritten by the wrong configuration. When Qt is configured with -release for example, it was possible that the debug manifest (Manifest files are always created next to the target) is written last and thus contains debug VCLibs as a dependency. Additionally the test was changed in that way, that the resulting file system structure (having helper and test application in a "top level" debug and release folder) is the same structure as in tst_qobject. Change-Id: I017b501506c54c4b89773d2b949c097598bc7049 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qapplication/test')
-rw-r--r--tests/auto/widgets/kernel/qapplication/test/test.pro19
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/test/test.pro b/tests/auto/widgets/kernel/qapplication/test/test.pro
index 832cfe7ebf..93e80dd123 100644
--- a/tests/auto/widgets/kernel/qapplication/test/test.pro
+++ b/tests/auto/widgets/kernel/qapplication/test/test.pro
@@ -1,11 +1,9 @@
CONFIG += testcase
-CONFIG -= debug_and_release_target
QT += widgets widgets-private testlib
QT += core-private gui-private
SOURCES += ../tst_qapplication.cpp
-TARGET = ../tst_qapplication
builtin_testdata: DEFINES += BUILTIN_TESTDATA
@@ -14,7 +12,20 @@ TESTDATA = ../test/test.pro ../tmp/README ../modal
!winrt {
SUBPROGRAMS = desktopsettingsaware modal
win32:SUBPROGRAMS += wincmdline
-
- for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../$${file}/$${file}"
}
+debug_and_release {
+ CONFIG(debug, debug|release) {
+ TARGET = ../../debug/tst_qapplication
+ !winrt: TEST_HELPER_INSTALLS = ../debug/helper
+ for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../debug/$${file}"
+ } else {
+ TARGET = ../../release/tst_qapplication
+ !winrt: TEST_HELPER_INSTALLS = ../release/helper
+ for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../release/$${file}"
+ }
+} else {
+ TARGET = ../tst_qapplication
+ !winrt: TEST_HELPER_INSTALLS = ../helper
+ for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../$${file}"
+}