diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-09-20 13:13:34 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-20 08:46:27 +0200 |
commit | 57368c7037c6d2a6c8cc18d9d41399bf740abe5c (patch) | |
tree | fe985dfedc02e690487c7efe7671859e571384af /tests/auto/testlib/selftests/expected_globaldata.txt | |
parent | 01ece201ab08804c4ab226a39f1e1885aeaae0bd (diff) |
Improve globaldata testlib selftest.
Make the test use qDebug instead of printf, so that the reference test
output is the same regardless of whether the log goes to the console or
a file.
Also rename the test class, as it was evidently cut-n-pasted from the
subtest selftest without being renamed.
Change-Id: I8df1f0989f2e8c33c1f829ba8110fd740ff70f63
Reviewed-on: http://codereview.qt-project.org/5184
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_globaldata.txt')
-rw-r--r-- | tests/auto/testlib/selftests/expected_globaldata.txt | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/tests/auto/testlib/selftests/expected_globaldata.txt b/tests/auto/testlib/selftests/expected_globaldata.txt index 983376b261..75ceb2c0ce 100644 --- a/tests/auto/testlib/selftests/expected_globaldata.txt +++ b/tests/auto/testlib/selftests/expected_globaldata.txt @@ -1,45 +1,45 @@ -********* Start testing of tst_Subtest ********* -Config: Using QTest library 4.3.0, Qt 4.3.0 -initTestCase initTestCase (null) -PASS : tst_Subtest::initTestCase() -init testGlobal local 1 -global: 0 -local: 0 -cleanup testGlobal local 1 -init testGlobal local 2 -global: 0 -local: 1 -cleanup testGlobal local 2 -init testGlobal local 1 -global: 1 -local: 0 -cleanup testGlobal local 1 -init testGlobal local 2 -global: 1 -local: 1 -cleanup testGlobal local 2 -PASS : tst_Subtest::testGlobal() -SKIP : tst_Subtest::skip(1) skipping - Loc: [/home/fenglich/dev/qt-4.3/tests/auto/selftests/globaldata/tst_globaldata.cpp(95)] -init skipLocal local 1 -SKIP : tst_Subtest::skipLocal(1:local 1) skipping - Loc: [/home/fenglich/dev/qt-4.3/tests/auto/selftests/globaldata/tst_globaldata.cpp(115)] -cleanup skipLocal local 1 -init skipSingle local 1 -global: 0, local 0 -cleanup skipSingle local 1 -init skipSingle local 2 -global: 0, local 1 -cleanup skipSingle local 2 -init skipSingle local 1 -SKIP : tst_Subtest::skipSingle(2:local 1) skipping - Loc: [/home/fenglich/dev/qt-4.3/tests/auto/selftests/globaldata/tst_globaldata.cpp(109)] -cleanup skipSingle local 1 -init skipSingle local 2 -global: 1, local 1 -cleanup skipSingle local 2 -PASS : tst_Subtest::skipSingle() -cleanupTestCase cleanupTestCase (null) -PASS : tst_Subtest::cleanupTestCase() +********* Start testing of tst_globaldata ********* +Config: Using QTest library 5.0.0, Qt 5.0.0 +QDEBUG : tst_globaldata::initTestCase() initTestCase initTestCase (null) +PASS : tst_globaldata::initTestCase() +QDEBUG : tst_globaldata::testGlobal(1:local 1) init testGlobal local 1 +QDEBUG : tst_globaldata::testGlobal(1:local 1) global: false +QDEBUG : tst_globaldata::testGlobal(1:local 1) local: false +QDEBUG : tst_globaldata::testGlobal(1:local 1) cleanup testGlobal local 1 +QDEBUG : tst_globaldata::testGlobal(1:local 2) init testGlobal local 2 +QDEBUG : tst_globaldata::testGlobal(1:local 2) global: false +QDEBUG : tst_globaldata::testGlobal(1:local 2) local: true +QDEBUG : tst_globaldata::testGlobal(1:local 2) cleanup testGlobal local 2 +QDEBUG : tst_globaldata::testGlobal(2:local 1) init testGlobal local 1 +QDEBUG : tst_globaldata::testGlobal(2:local 1) global: true +QDEBUG : tst_globaldata::testGlobal(2:local 1) local: false +QDEBUG : tst_globaldata::testGlobal(2:local 1) cleanup testGlobal local 1 +QDEBUG : tst_globaldata::testGlobal(2:local 2) init testGlobal local 2 +QDEBUG : tst_globaldata::testGlobal(2:local 2) global: true +QDEBUG : tst_globaldata::testGlobal(2:local 2) local: true +QDEBUG : tst_globaldata::testGlobal(2:local 2) cleanup testGlobal local 2 +PASS : tst_globaldata::testGlobal() +SKIP : tst_globaldata::skip(1) skipping + Loc: [/home/dev/qt5/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp(129)] +QDEBUG : tst_globaldata::skipLocal(1:local 1) init skipLocal local 1 +SKIP : tst_globaldata::skipLocal(1:local 1) skipping + Loc: [/home/dev/qt5/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp(149)] +QDEBUG : tst_globaldata::skipLocal(1:local 1) cleanup skipLocal local 1 +QDEBUG : tst_globaldata::skipSingle(1:local 1) init skipSingle local 1 +QDEBUG : tst_globaldata::skipSingle(1:local 1) global: false local: false +QDEBUG : tst_globaldata::skipSingle(1:local 1) cleanup skipSingle local 1 +QDEBUG : tst_globaldata::skipSingle(1:local 2) init skipSingle local 2 +QDEBUG : tst_globaldata::skipSingle(1:local 2) global: false local: true +QDEBUG : tst_globaldata::skipSingle(1:local 2) cleanup skipSingle local 2 +QDEBUG : tst_globaldata::skipSingle(2:local 1) init skipSingle local 1 +SKIP : tst_globaldata::skipSingle(2:local 1) skipping + Loc: [/home/dev/qt5/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp(143)] +QDEBUG : tst_globaldata::skipSingle(2:local 1) cleanup skipSingle local 1 +QDEBUG : tst_globaldata::skipSingle(2:local 2) init skipSingle local 2 +QDEBUG : tst_globaldata::skipSingle(2:local 2) global: true local: true +QDEBUG : tst_globaldata::skipSingle(2:local 2) cleanup skipSingle local 2 +PASS : tst_globaldata::skipSingle() +QDEBUG : tst_globaldata::cleanupTestCase() cleanupTestCase cleanupTestCase (null) +PASS : tst_globaldata::cleanupTestCase() Totals: 4 passed, 0 failed, 3 skipped -********* Finished testing of tst_Subtest ********* +********* Finished testing of tst_globaldata ********* |