diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-12-05 15:00:51 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-05 09:02:15 +0100 |
commit | 260a2e52b2ab58bb6e27bb4915ebc2196fd1f2d4 (patch) | |
tree | efced0f0ec61fc5e9415b65be7a9f3fc7515192c /tests/auto/testlib/selftests/printdatatags | |
parent | 4bca278d634b63058dae1ccd7ebe3c4b58bb9227 (diff) |
Fixing naming of selftests.
Make the test object names correspond to the test program names, so that
it is easier to see which test produced each block of test output.
Change-Id: Ib19a955938b549f27cdcaac83bfa9150285b396d
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/testlib/selftests/printdatatags')
-rw-r--r-- | tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp b/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp index 79f889072f..f0882316b8 100644 --- a/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp +++ b/tests/auto/testlib/selftests/printdatatags/tst_printdatatags.cpp @@ -42,7 +42,7 @@ #include <QtTest/QtTest> -class tst_MyTestCase: public QObject +class tst_PrintDataTags: public QObject { Q_OBJECT private slots: @@ -55,7 +55,7 @@ private slots: void c() const; }; -void tst_MyTestCase::a_data() const +void tst_PrintDataTags::a_data() const { QTest::addColumn<int>("x"); QTest::addColumn<int>("y"); @@ -64,15 +64,15 @@ void tst_MyTestCase::a_data() const QTest::newRow("data tag a2") << 1 << 2; } -void tst_MyTestCase::a() const +void tst_PrintDataTags::a() const { } -void tst_MyTestCase::b() const +void tst_PrintDataTags::b() const { } -void tst_MyTestCase::c_data() const +void tst_PrintDataTags::c_data() const { QTest::addColumn<int>("x"); @@ -81,10 +81,10 @@ void tst_MyTestCase::c_data() const QTest::newRow("data tag c3") << 1; } -void tst_MyTestCase::c() const +void tst_PrintDataTags::c() const { } -QTEST_MAIN(tst_MyTestCase) +QTEST_MAIN(tst_PrintDataTags) #include "tst_printdatatags.moc" |