summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qcomparehelpers/tst_qcomparehelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/global/qcomparehelpers/tst_qcomparehelpers.cpp')
-rw-r--r--tests/auto/corelib/global/qcomparehelpers/tst_qcomparehelpers.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/auto/corelib/global/qcomparehelpers/tst_qcomparehelpers.cpp b/tests/auto/corelib/global/qcomparehelpers/tst_qcomparehelpers.cpp
index 8da320a63a..16dbd9a93e 100644
--- a/tests/auto/corelib/global/qcomparehelpers/tst_qcomparehelpers.cpp
+++ b/tests/auto/corelib/global/qcomparehelpers/tst_qcomparehelpers.cpp
@@ -201,15 +201,10 @@ void tst_QCompareHelpers::compareImpl()
QFETCH(RightType, rhs);
QFETCH(OrderingType, expectedOrdering);
- QTestPrivate::testAllComparisonOperators(lhs, rhs, expectedOrdering);
- if (QTest::currentTestFailed())
- return;
+ QT_TEST_ALL_COMPARISON_OPS(lhs, rhs, expectedOrdering);
#ifdef __cpp_lib_three_way_comparison
// Also check std types.
- QTestPrivate::testAllComparisonOperators(lhs, rhs,
- QtOrderingPrivate::to_std(expectedOrdering));
- if (QTest::currentTestFailed())
- return;
+ QT_TEST_ALL_COMPARISON_OPS(lhs, rhs, QtOrderingPrivate::to_std(expectedOrdering));
#endif // __cpp_lib_three_way_comparison
}