summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdbustype/tst_qdbustype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qdbustype/tst_qdbustype.cpp')
-rw-r--r--tests/auto/qdbustype/tst_qdbustype.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qdbustype/tst_qdbustype.cpp b/tests/auto/qdbustype/tst_qdbustype.cpp
index 676a9040be..2a10fe1886 100644
--- a/tests/auto/qdbustype/tst_qdbustype.cpp
+++ b/tests/auto/qdbustype/tst_qdbustype.cpp
@@ -185,8 +185,8 @@ void tst_QDBusType::isValidFixedType()
QFETCH(QString, data);
QFETCH(bool, result);
QFETCH(bool, isValid);
- Q_ASSERT_X(data.length() == 1, "tst_QDBusType", "Test is malformed, this function must test only one-letter types");
- Q_ASSERT(isValid || (!isValid && !result));
+ QVERIFY2(data.length() == 1, "Test is malformed, this function must test only one-letter types");
+ QVERIFY(isValid || (!isValid && !result));
int type = data.at(0).unicode();
if (isValid)
@@ -207,8 +207,8 @@ void tst_QDBusType::isValidBasicType()
QFETCH(QString, data);
QFETCH(bool, result);
QFETCH(bool, isValid);
- Q_ASSERT_X(data.length() == 1, "tst_QDBusType", "Test is malformed, this function must test only one-letter types");
- Q_ASSERT(isValid || (!isValid && !result));
+ QVERIFY2(data.length() == 1, "Test is malformed, this function must test only one-letter types");
+ QVERIFY(isValid || (!isValid && !result));
int type = data.at(0).unicode();
if (isValid)