f64f428b81
Prior to this commit, when an unexpected pass occurred the test output showed the message "XPASS : tst_foo::function() 'expr' returned FALSE", where the problem was actually that the expression evaluated to true when it was expected to be false. This commit changes the output to make it clear that the expression evaluated to true unexpectedly. Task-number: QTBUG-22118 Change-Id: Id22c178073d3b75789675ca37a8ef019029b1f91 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
27 lines
1.5 KiB
Plaintext
27 lines
1.5 KiB
Plaintext
********* Start testing of tst_Xunit *********
|
|
Config: Using QTest library @INSERT_QT_VERSION_HERE@, Qt @INSERT_QT_VERSION_HERE@
|
|
PASS : tst_Xunit::initTestCase()
|
|
WARNING: tst_Xunit::testFunc1() just a QWARN() !
|
|
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp(67)]
|
|
PASS : tst_Xunit::testFunc1()
|
|
QDEBUG : tst_Xunit::testFunc2() a qDebug() call with comment-ending stuff -->
|
|
FAIL! : tst_Xunit::testFunc2() Compared values are not the same
|
|
Actual (2): 2
|
|
Expected (3): 3
|
|
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp(74)]
|
|
SKIP : tst_Xunit::testFunc3() skipping this function!
|
|
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp(79)]
|
|
FAIL! : tst_Xunit::testFunc4() a forced failure!
|
|
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp(84)]
|
|
XFAIL : tst_Xunit::testFunc5() this failure is expected
|
|
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp(98)]
|
|
PASS : tst_Xunit::testFunc5()
|
|
XFAIL : tst_Xunit::testFunc6() this failure is also expected
|
|
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp(104)]
|
|
PASS : tst_Xunit::testFunc6()
|
|
XPASS : tst_Xunit::testFunc7() 'true' returned TRUE unexpectedly. ()
|
|
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp(110)]
|
|
PASS : tst_Xunit::cleanupTestCase()
|
|
Totals: 5 passed, 3 failed, 1 skipped
|
|
********* Finished testing of tst_Xunit *********
|