summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-04-18 20:52:27 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-04-19 10:52:31 +0000
commitda396bc54b776da682ffdcd2aa61f504d607bc12 (patch)
tree2a71f96ade8cc3212e1b8230eede66304041da32 /tests
parent6ae78369d1156e653df6a2e539230a89cf963b00 (diff)
downloadqtserialport-da396bc54b776da682ffdcd2aa61f504d607bc12.tar.gz
Remove the QT_VERSION_CHECK(5, 0, 0) macrov5.5.0-beta1
... since current branch supports only Qt5. Change-Id: I2aaf4261b307eb6ca7ae32e94ddaf7801395f022 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qserialport/tst_qserialport.cpp21
-rw-r--r--tests/auto/qserialportinfo/tst_qserialportinfo.cpp4
-rw-r--r--tests/manual/qserialport/tst_qserialport.cpp4
3 files changed, 0 insertions, 29 deletions
diff --git a/tests/auto/qserialport/tst_qserialport.cpp b/tests/auto/qserialport/tst_qserialport.cpp
index 627de6c..1a714b2 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);
diff --git a/tests/auto/qserialportinfo/tst_qserialportinfo.cpp b/tests/auto/qserialportinfo/tst_qserialportinfo.cpp
index 54f1825..f0e6e9a 100644
--- a/tests/auto/qserialportinfo/tst_qserialportinfo.cpp
+++ b/tests/auto/qserialportinfo/tst_qserialportinfo.cpp
@@ -75,11 +75,7 @@ void tst_QSerialPortInfo::initTestCase()
#else
"\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;
}
diff --git a/tests/manual/qserialport/tst_qserialport.cpp b/tests/manual/qserialport/tst_qserialport.cpp
index 380af39..f6f3252 100644
--- a/tests/manual/qserialport/tst_qserialport.cpp
+++ b/tests/manual/qserialport/tst_qserialport.cpp
@@ -61,11 +61,7 @@ void tst_QSerialPort::initTestCase()
serialPortInfoList = QSerialPortInfo::availablePorts();
if (serialPortInfoList.isEmpty()) {
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
QSKIP("Test doesn't work because the serial ports are not detected.");
-#else
- QSKIP("Test doesn't work because the serial ports are not detected.", SkipAll);
-#endif
}
}