summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/thread/qthread
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2022-05-14 21:03:28 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2022-05-17 02:51:22 +0200
commitb576d7f6d1b9d9536b388748ad04fc28ebb13550 (patch)
tree4deba0e2964598fbea660414626ddf12721c9d34 /tests/auto/corelib/thread/qthread
parent282f4e5d3a1f596f0b127f1e3f59a9a25417e8ff (diff)
Guard the use of QWinEventNotifier in tests
Add the Q_OS_WIN32 guard for the include of QWinEventNotifier. Change-Id: I7824b2ee236a370c83fd85a2f594a39cf36b36e6 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto/corelib/thread/qthread')
-rw-r--r--tests/auto/corelib/thread/qthread/tst_qthread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/thread/qthread/tst_qthread.cpp b/tests/auto/corelib/thread/qthread/tst_qthread.cpp
index f65722b0ff..70ed8b523b 100644
--- a/tests/auto/corelib/thread/qthread/tst_qthread.cpp
+++ b/tests/auto/corelib/thread/qthread/tst_qthread.cpp
@@ -6,7 +6,9 @@
#include <QSignalSpy>
#include <QSemaphore>
#include <QAbstractEventDispatcher>
+#if defined(Q_OS_WIN32)
#include <QWinEventNotifier>
+#endif
#include <qcoreapplication.h>
#include <qelapsedtimer.h>