cbc777374a
Previously the silent logging mode suppressed passes, skips and internal testlib info messages, but did not suppress debugging output, making it hard to see the fails in a noisy test. This commit changes silent mode so that it suppresses all output except test failures and fatal errors, making silent mode truly useful for seeing just the important test output. This commit also adds a selftest to verify the behaviour of silent mode. Change-Id: I75420aead03682306210746a87e2a3b608b58fc6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
10 lines
617 B
Plaintext
10 lines
617 B
Plaintext
Testing tst_Silent
|
|
FAIL! : tst_Silent::fail() 'false' returned FALSE. (This test should fail)
|
|
Loc: [/home/jasmcdon/depot/qt5-test/qtbase/tests/auto/testlib/selftests/silent/tst_silent.cpp(73)]
|
|
XPASS : tst_Silent::xpass() 'true' returned TRUE unexpectedly. (This test should XPASS)
|
|
Loc: [/home/jasmcdon/depot/qt5-test/qtbase/tests/auto/testlib/selftests/silent/tst_silent.cpp(85)]
|
|
QFATAL : tst_Silent::messages() This is a fatal error message that should still appear in silent test output
|
|
FAIL! : tst_Silent::messages() Received a fatal error.
|
|
Loc: [Unknown file(0)]
|
|
Totals: 3 passed, 3 failed, 1 skipped
|