private slots:
void unexpectedDisconnection();
void mixingWithTimers();
+#ifdef Q_OS_UNIX
void posixSockets();
+#endif
};
class UnexpectedDisconnectTester : public QObject
QTRY_COMPARE(helper.socketActivated, true);
}
+#ifdef Q_OS_UNIX
+// test only for posix
void tst_QSocketNotifier::posixSockets()
{
-#ifndef Q_OS_UNIX
- QSKIP("test only for posix");
-#else
QTcpServer server;
QVERIFY(server.listen(QHostAddress::LocalHost, 0));
QCOMPARE(passive->readAll(), QByteArray("goodbye",8));
}
qt_safe_close(posixSocket);
-#endif
}
+#endif
QTEST_MAIN(tst_QSocketNotifier)
#include <tst_qsocketnotifier.moc>