diff options
-rw-r--r-- | tests/auto/qserialport/tst_qserialport.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qserialport/tst_qserialport.cpp b/tests/auto/qserialport/tst_qserialport.cpp index 990f6ee..245c7f2 100644 --- a/tests/auto/qserialport/tst_qserialport.cpp +++ b/tests/auto/qserialport/tst_qserialport.cpp @@ -258,7 +258,11 @@ void tst_QSerialPort::handleBytesWrittenAndExitLoopSlot(qint64 bytesWritten) void tst_QSerialPort::flush() { #ifdef Q_OS_WIN +#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) QSKIP("flush() does not work on Windows"); +#else + QSKIP("flush() does not work on Windows", SkipAll); +#endif #endif QSerialPort serialPort(m_senderPortName); @@ -289,7 +293,11 @@ void tst_QSerialPort::handleBytesWrittenAndExitLoopSlot2(qint64 bytesWritten) void tst_QSerialPort::doubleFlush() { #ifdef Q_OS_WIN +#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) QSKIP("flush() does not work on Windows"); +#else + QSKIP("flush() does not work on Windows", SkipAll); +#endif #endif QSerialPort serialPort(m_senderPortName); |