summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestresult_p.h
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2022-05-30 12:07:17 +0200
committerIvan Solovev <ivan.solovev@qt.io>2022-06-03 22:37:50 +0200
commit9327d1aaf79d4214db78ec86b8b6df7738bd1875 (patch)
tree6c61b2dccece96a3a9164006b17e83747d6768b1 /src/testlib/qtestresult_p.h
parent3dcf1779be43373f820fb924c3fed21d05d5c5d2 (diff)
Testlib: teach TAP test logger to support new QCOMPARE_* operators
The TAP test logger will now correctly print comparison types such as QCOMPARE_NE or QCOMPARE_LT, and also provide a proper expected/wanted value (by adding proper arithmetical operators in front of the value). Sample output: type: QCOMPARE_GE message: Left value is expected to be greater than or equal to right value, but is not wanted: >= 1 (rhs) found: 0 (lhs) expected: >= 1 (rhs) actual: 0 (lhs) at: tst_ExtendedCompare::compareUnregistereEnum() (tst_extendedcompare.cpp:232) file: tst_extendedcompare.cpp line: 232 As a drive-by: make some variables const. Task-number: QTBUG-98873 Change-Id: Idb54eaabcb937b42d3fc844f30041aab82d73f69 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib/qtestresult_p.h')
0 files changed, 0 insertions, 0 deletions