diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2021-03-26 20:11:17 +0200 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2021-03-29 15:54:05 +0200 |
commit | d8c6052815bcff99902cc09a145ffd14dc395e9a (patch) | |
tree | 4507fbcd386911c63cc24dd93a694b362be254d6 /tests | |
parent | e65558c230bc48ae9cced1f147180f4e33517791 (diff) |
Repair tst_qwineventnotifier
- add missing include
- fix platform detection in CMakeLists.txt
Change-Id: If7d04765eb40310d2841e792e8f80e083e067ad2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/kernel/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/corelib/kernel/CMakeLists.txt b/tests/auto/corelib/kernel/CMakeLists.txt index 3326070727..4053ca16fa 100644 --- a/tests/auto/corelib/kernel/CMakeLists.txt +++ b/tests/auto/corelib/kernel/CMakeLists.txt @@ -39,7 +39,7 @@ endif() if(QT_FEATURE_systemsemaphore AND NOT ANDROID AND NOT UIKIT) add_subdirectory(qsystemsemaphore) endif() -if(win32_x_) +if(WIN32) add_subdirectory(qwineventnotifier) endif() if(QT_FEATURE_private_tests) diff --git a/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp b/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp index c3dc941088..be1f2259e5 100644 --- a/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp +++ b/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp @@ -27,6 +27,8 @@ ****************************************************************************/ #include <QTest> +#include <QTestEventLoop> + #include <qlist.h> #include <qtimer.h> #include <qvarlengtharray.h> |