qt5base-lts/tests/auto/testlib/selftests/expected_warnings.tap
Ulf Hermann c25687fa0b QTestResult: Don't pass a nullptr file to addFailure()
addBFail() asserts on the file being non-null. The convention seems to
be "Unknown File" for cases where we cannot determine the file.

Change-Id: I3a4d0130352d77d75f264fad6f3bd47c6700ef4c
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2020-09-30 16:20:29 +02:00

55 lines
1.3 KiB
Plaintext

TAP version 13
# tst_Warnings
ok 1 - initTestCase()
# Warning
# Warning
# Debug
# Debug
# Info
# Info
# Baba
# Baba
# Bubublabla
# Babablabla
ok 2 - testWarnings()
# Did not receive message: "Warning0"
# Did not receive message: "Warning1"
not ok 3 - testMissingWarnings()
---
# Not all expected messages were received
at: tst_Warnings::testMissingWarnings() (Unknown File:0)
file: Unknown File
line: 0
...
# Did not receive any message matching: "Warning\s\d"
not ok 4 - testMissingWarningsRegularExpression()
---
# Not all expected messages were received
at: tst_Warnings::testMissingWarningsRegularExpression() (Unknown File:0)
file: Unknown File
line: 0
...
# Did not receive message: "Warning0"
# Did not receive message: "Warning1"
not ok 5 - testMissingWarningsWithData(first row)
---
# Not all expected messages were received
at: tst_Warnings::testMissingWarningsWithData() (Unknown File:0)
file: Unknown File
line: 0
...
# Did not receive message: "Warning0"
# Did not receive message: "Warning1"
not ok 6 - testMissingWarningsWithData(second row)
---
# Not all expected messages were received
at: tst_Warnings::testMissingWarningsWithData() (Unknown File:0)
file: Unknown File
line: 0
...
ok 7 - cleanupTestCase()
1..7
# tests 7
# pass 3
# fail 4