diff options
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp | 4 | ||||
-rw-r--r-- | tests/auto/gui/kernel/qguiapplication/CMakeLists.txt | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp b/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp index fcfd3030d5..6d83371eac 100644 --- a/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp +++ b/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp @@ -123,7 +123,7 @@ void tst_QCoreApplication::getSetCheck() void tst_QCoreApplication::qAppName() { -#ifdef QT_GUI_LIB +#ifdef QT_QGUIAPPLICATIONTEST const char* appName = "tst_qguiapplication"; #else const char* appName = "tst_qcoreapplication"; @@ -1078,7 +1078,7 @@ static void createQObjectOnDestruction() } Q_DESTRUCTOR_FUNCTION(createQObjectOnDestruction) -#ifndef QT_GUI_LIB +#ifndef QT_QGUIAPPLICATIONTEST QTEST_APPLESS_MAIN(tst_QCoreApplication) #endif diff --git a/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt b/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt index 1518df22a4..7c3c4efc45 100644 --- a/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt +++ b/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt @@ -25,6 +25,7 @@ qt_internal_add_test(tst_qguiapplication tst_qguiapplication.cpp DEFINES QT_DISABLE_DEPRECATED_BEFORE=0x050E00 + QT_QGUIAPPLICATIONTEST=1 INCLUDE_DIRECTORIES ../../../corelib/kernel/qcoreapplication PUBLIC_LIBRARIES |