diff options
Diffstat (limited to 'tests/auto/corelib/kernel/qsocketnotifier/tst_qsocketnotifier.cpp')
-rw-r--r-- | tests/auto/corelib/kernel/qsocketnotifier/tst_qsocketnotifier.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/corelib/kernel/qsocketnotifier/tst_qsocketnotifier.cpp b/tests/auto/corelib/kernel/qsocketnotifier/tst_qsocketnotifier.cpp index 643524ed61..a1c943e877 100644 --- a/tests/auto/corelib/kernel/qsocketnotifier/tst_qsocketnotifier.cpp +++ b/tests/auto/corelib/kernel/qsocketnotifier/tst_qsocketnotifier.cpp @@ -67,9 +67,7 @@ class tst_QSocketNotifier : public QObject private slots: void unexpectedDisconnection(); void mixingWithTimers(); -#ifdef Q_OS_UNIX void posixSockets(); -#endif }; class UnexpectedDisconnectTester : public QObject @@ -246,9 +244,11 @@ void tst_QSocketNotifier::mixingWithTimers() QCOMPARE(helper.socketActivated, true); } -#ifdef Q_OS_UNIX void tst_QSocketNotifier::posixSockets() { +#ifndef Q_OS_UNIX + QSKIP("test only for posix"); +#else QTcpServer server; QVERIFY(server.listen(QHostAddress::LocalHost, 0)); @@ -295,8 +295,8 @@ void tst_QSocketNotifier::posixSockets() QCOMPARE(passive->readAll(), QByteArray("goodbye",8)); } qt_safe_close(posixSocket); -} #endif +} QTEST_MAIN(tst_QSocketNotifier) #include <tst_qsocketnotifier.moc> |