21e9c223b7
The skipcleanup and failcleanup tests were actually testing skip and fail in cleanupTestCase(), not in cleanup(). Add almost-duplicate tests and clean up so that we now have {fail,skip}cleanup(,testcase} tests to cover all four cases. Generated expected output. The new tests (with old names) get their fail or skip - during cleanup() - reported against the test instead of the cleanupTestCase function. (Results for {init,cleanup}TestCase() are always reported, even when these slots are not defined, as no-op passes.) Pick-to: 6.4 Change-Id: I0988d1696b50c0e2f30c45ddc25e1bd0bfd2151a Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
21 lines
549 B
Plaintext
21 lines
549 B
Plaintext
TAP version 13
|
|
# tst_FailCleanupTestCase
|
|
ok 1 - initTestCase()
|
|
ok 2 - aTestFunction()
|
|
not ok 3 - cleanupTestCase()
|
|
---
|
|
type: QVERIFY
|
|
message: Fail inside cleanupTestCase
|
|
wanted: true (false)
|
|
found: false (false)
|
|
expected: true (false)
|
|
actual: false (false)
|
|
at: tst_FailCleanupTestCase::cleanupTestCase() (qtbase/tests/auto/testlib/selftests/failcleanuptestcase/tst_failcleanuptestcase.cpp:0)
|
|
file: qtbase/tests/auto/testlib/selftests/failcleanuptestcase/tst_failcleanuptestcase.cpp
|
|
line: 0
|
|
...
|
|
1..3
|
|
# tests 3
|
|
# pass 2
|
|
# fail 1
|