From fe48366b48473282d448a8b0dd6fb9286272f465 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Tue, 11 Oct 2011 17:42:44 +1000 Subject: Don't build empty qwineventnotifier test. This test is only useful on Windows, so avoid building it elsewhere rather than building an empty test. Change-Id: I01d91266bcb2dd242e02e70741ad5b81a13c33f0 Reviewed-by: Rohan McGovern --- tests/auto/corelib/kernel/kernel.pro | 3 +++ .../corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/corelib/kernel/kernel.pro b/tests/auto/corelib/kernel/kernel.pro index 9fb8868391..42fda6f300 100644 --- a/tests/auto/corelib/kernel/kernel.pro +++ b/tests/auto/corelib/kernel/kernel.pro @@ -20,3 +20,6 @@ SUBDIRS=\ !contains(QT_CONFIG, private_tests): SUBDIRS -= \ qsocketnotifier + +# This test is only applicable on Windows +!win32*:SUBDIRS -= qwineventnotifier diff --git a/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp b/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp index cbe62f6662..c351167ce8 100644 --- a/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp +++ b/tests/auto/corelib/kernel/qwineventnotifier/tst_qwineventnotifier.cpp @@ -41,11 +41,7 @@ #include - -#ifdef Q_OS_WIN #include - - #include //TESTED_CLASS= @@ -140,7 +136,3 @@ void tst_QWinEventNotifier::simple() QTEST_MAIN(tst_QWinEventNotifier) #include "tst_qwineventnotifier.moc" -#else // non-windows systems -QTEST_NOOP_MAIN -#endif - -- cgit v1.2.3