diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-11-24 17:34:51 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-25 07:56:16 +0100 |
commit | e08410ab8db3d7cabf4ef2fc4de40bb6da6d6fef (patch) | |
tree | 9d6e154364039ab6cbc7a789ef33b7e0ce038e51 /tests/auto/corelib/tools/qvarlengtharray | |
parent | 489a39aacc102e46a5b3fffd5839ed694bb7214f (diff) |
Cleanup corelib autotests
Bug trackers come and go, so using bug identifiers in function and test
case names will ensure that those names eventually become meaningless.
It is better to choose a meaningful name and provide explanatory
comments where appropriate.
Change-Id: I67c27782ef21b5d4eaab4854079a043c8ef6957b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools/qvarlengtharray')
-rw-r--r-- | tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp b/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp index b6bdd9d1cf..c36f293745 100644 --- a/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp +++ b/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp @@ -56,8 +56,8 @@ private slots: void removeLast(); void oldTests(); void task214223(); - void QTBUG6718_resize(); - void QTBUG10978_realloc(); + void resize(); + void realloc(); }; int fooCtor = 0; @@ -258,7 +258,7 @@ void tst_QVarLengthArray::task214223() d.append(i); } -void tst_QVarLengthArray::QTBUG6718_resize() +void tst_QVarLengthArray::resize() { //MOVABLE { @@ -400,7 +400,7 @@ Q_DECLARE_TYPEINFO(MyComplex, Q_COMPLEX_TYPE); QT_END_NAMESPACE -bool QTBUG10978_proceed = true; +bool reallocTestProceed = true; template <class T, int PreAlloc> int countMoved(QVarLengthArray<T, PreAlloc> const &c) @@ -414,9 +414,9 @@ int countMoved(QVarLengthArray<T, PreAlloc> const &c) } template <class T> -void QTBUG10978_test() +void reallocTest() { - QTBUG10978_proceed = false; + reallocTestProceed = false; typedef QVarLengthArray<T, 16> Container; enum { @@ -578,22 +578,22 @@ void QTBUG10978_test() QCOMPARE(MyBase::liveCount, 0); // All done - QTBUG10978_proceed = true; + reallocTestProceed = true; } -void tst_QVarLengthArray::QTBUG10978_realloc() +void tst_QVarLengthArray::realloc() { - QTBUG10978_test<MyBase>(); - QVERIFY(QTBUG10978_proceed); + reallocTest<MyBase>(); + QVERIFY(reallocTestProceed); - QTBUG10978_test<MyPrimitive>(); - QVERIFY(QTBUG10978_proceed); + reallocTest<MyPrimitive>(); + QVERIFY(reallocTestProceed); - QTBUG10978_test<MyMovable>(); - QVERIFY(QTBUG10978_proceed); + reallocTest<MyMovable>(); + QVERIFY(reallocTestProceed); - QTBUG10978_test<MyComplex>(); - QVERIFY(QTBUG10978_proceed); + reallocTest<MyComplex>(); + QVERIFY(reallocTestProceed); } QTEST_APPLESS_MAIN(tst_QVarLengthArray) |