summaryrefslogtreecommitdiffstats
path: root/tests/auto/qserialport/tst_qserialport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qserialport/tst_qserialport.cpp')
-rw-r--r--tests/auto/qserialport/tst_qserialport.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/auto/qserialport/tst_qserialport.cpp b/tests/auto/qserialport/tst_qserialport.cpp
index 627de6c5..1a714b2f 100644
--- a/tests/auto/qserialport/tst_qserialport.cpp
+++ b/tests/auto/qserialport/tst_qserialport.cpp
@@ -56,12 +56,7 @@ public:
static void enterLoopMsecs(int msecs)
{
++loopLevel;
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
QTestEventLoop::instance().enterLoopMSecs(msecs);
-#else
- Q_UNUSED(msecs);
- QTestEventLoop::instance().enterLoop(1);
-#endif
--loopLevel;
}
@@ -176,11 +171,7 @@ void tst_QSerialPort::initTestCase()
"\n";
#endif
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
QSKIP(message);
-#else
- QSKIP(message, SkipAll);
-#endif
} else {
m_availablePortNames << m_senderPortName << m_receiverPortName;
}
@@ -243,11 +234,7 @@ void tst_QSerialPort::constructByInfo()
static const char message[] =
"Test doesn't work because the specified serial ports aren't"
" found in system and can't be constructed by QSerialPortInfo.\n";
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
QSKIP(message);
-#else
- QSKIP(message, SkipAll);
-#endif
}
#endif
@@ -334,11 +321,7 @@ 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);
@@ -369,11 +352,7 @@ 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);