itions of QCOMPARE, QVERIFY & QVERIFY2, this are qtest macros not asserts (#1690)

* qt.cfg: Changed definitions of QCOMPARE, QVERIFY & QVERIFY2, this are qtest macros not asserts

* qt.cfg: Add support for further qtest macros
This commit is contained in:
Andreas Bacher 2019-02-24 16:44:48 +01:00 committed by orbitcowboy
parent 41d87d6306
commit 6760958e67
1 changed files with 11 additions and 3 deletions

View File

@ -1332,9 +1332,17 @@
<define name="QT_TRANSLATE_NOOP_UTF8(scope, x)" value="x"/> <define name="QT_TRANSLATE_NOOP_UTF8(scope, x)" value="x"/>
<define name="QT_TRANSLATE_NOOP3(scope, x, comment)" value="{x, comment}"/> <define name="QT_TRANSLATE_NOOP3(scope, x, comment)" value="{x, comment}"/>
<define name="QT_TRANSLATE_NOOP3_UTF8(scope, x, comment)" value="{x, comment}"/> <define name="QT_TRANSLATE_NOOP3_UTF8(scope, x, comment)" value="{x, comment}"/>
<define name="QCOMPARE(a,b)" value="assert( (a) == (b) )"/> <define name="QCOMPARE(a,b)" value=""/>
<define name="QVERIFY(expr)" value="assert( expr )"/> <define name="QVERIFY(expr)" value=""/>
<define name="QVERIFY2(cond, msg)" value="assert( cond )"/> <define name="QVERIFY2(cond, msg)" value=""/>
<define name="QBENCHMARK_ONCE" value=""/>
<define name="QBENCHMARK" value=""/>
<define name="QTRY_COMPARE(actual, expected)" value=""/>
<define name="QTRY_COMPARE_WITH_TIMEOUT(actual, expected, timeout)" value=""/>
<define name="QTRY_VERIFY2(condition, message)" value=""/>
<define name="QTRY_VERIFY(condition)" value=""/>
<define name="QTRY_VERIFY2_WITH_TIMEOUT(condition, message, timeout)" value=""/>
<define name="QTRY_VERIFY_WITH_TIMEOUT(condition, timeout)" value=""/>
<define name="foreach(A,B)" value="for(A:B)"/> <define name="foreach(A,B)" value="for(A:B)"/>
<define name="forever" value="for (;;)"/> <define name="forever" value="for (;;)"/>
<define name="emit(X)" value="(X)"/> <define name="emit(X)" value="(X)"/>