summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qmodbusreply/tst_qmodbusreply.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qmodbusreply/tst_qmodbusreply.cpp b/tests/auto/qmodbusreply/tst_qmodbusreply.cpp
index 24b2a98..8d789b0 100644
--- a/tests/auto/qmodbusreply/tst_qmodbusreply.cpp
+++ b/tests/auto/qmodbusreply/tst_qmodbusreply.cpp
@@ -42,6 +42,7 @@ class tst_QModbusReply : public QObject
Q_OBJECT
private slots:
+ void initTestCase();
void tst_ctor();
void tst_setFinished();
void tst_setError_data();
@@ -49,6 +50,11 @@ private slots:
void tst_setResult();
};
+void tst_QModbusReply::initTestCase()
+{
+ qRegisterMetaType<QModbusDevice::Error>();
+}
+
void tst_QModbusReply::tst_ctor()
{
QModbusReply r(QModbusReply::Common, 1, this);