disable building of tests on xenial, QTRY_VERIFY isn't there yet

pull/1/head
Michael Zanetti 2018-11-13 02:43:38 +01:00
parent 68856ef56c
commit c6a4111677
1 changed files with 6 additions and 1 deletions

View File

@ -30,10 +30,11 @@ class OperationTests: public QObject
{
Q_OBJECT
#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
private slots:
void initTestCase();
void cleanup();
void connectAndDisconnect();
void keepAliveTimesOut();
@ -91,8 +92,11 @@ private:
MqttServer *m_server = nullptr;
QList<MqttClient*> m_clients;
#endif
};
#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
MqttClient *OperationTests::connectAndWait(const QString &clientId, bool cleanSession, quint16 keepAlive, const QString &willTopic, const QString &willMessage, Mqtt::QoS willQoS, bool willRetain)
{
QPair<MqttClient*, QSignalSpy*> result = connectToServer(clientId, cleanSession, keepAlive, willTopic, willMessage, willQoS, willRetain);
@ -809,6 +813,7 @@ void OperationTests::testEmptyClientId()
QTRY_COMPARE(client3.second->first().at(0).value<Mqtt::ConnectReturnCode>(), Mqtt::ConnectReturnCodeIdentifierRejected);
}
#endif
QTEST_MAIN(OperationTests)
#include "test_operation.moc"