testlib: Improve the silent logging mode
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 27 Feb 2012 06:31:03 +0000 (16:31 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 04:56:03 +0000 (05:56 +0100)
commitcbc777374a26134e87054b2292a800d4b3835d82
treee71eaa141bbb4a502eeae11e6823220725723d85
parent8cacf68cdf5a8211811ca8a30a75f6979682cb1f
testlib: Improve the silent logging mode

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>
src/testlib/qplaintestlogger.cpp
src/testlib/qtestcase.cpp
tests/auto/testlib/selftests/expected_silent.txt [new file with mode: 0644]
tests/auto/testlib/selftests/selftests.pri
tests/auto/testlib/selftests/selftests.qrc
tests/auto/testlib/selftests/silent/silent.pro [new file with mode: 0644]
tests/auto/testlib/selftests/silent/tst_silent.cpp [new file with mode: 0644]
tests/auto/testlib/selftests/tst_selftests.cpp