summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qvarlengtharray
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-29 12:53:30 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-29 05:16:52 +0100
commitc5b55d44032203612f98f89858a2198b4c6606ec (patch)
treef2dc003fc0092ab3d6f57fcda93b8b9a2c7b87a1 /tests/auto/corelib/tools/qvarlengtharray
parente881f4f5fdedf724ce2a5cd9fe2d448c4f8dbaa3 (diff)
Cleanup corelib autotests
Don't name test functions using task identifiers from obsolete bug trackers. Change-Id: Iba6ae8ad3b39e365c5510ed5c86749a167572829 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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp b/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp
index c36f293745..a005d5df7a 100644
--- a/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp
+++ b/tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp
@@ -55,7 +55,7 @@ private slots:
void append();
void removeLast();
void oldTests();
- void task214223();
+ void appendCausingRealloc();
void resize();
void realloc();
};
@@ -248,11 +248,11 @@ void tst_QVarLengthArray::oldTests()
}
}
-void tst_QVarLengthArray::task214223()
+void tst_QVarLengthArray::appendCausingRealloc()
{
- //creating a QVarLengthArray of the same size as the prealloc size
- // will make the next call to append(const T&) corrupt the memory
- // you should get a segfault pretty soon after that :-)
+ // This is a regression test for an old bug where creating a
+ // QVarLengthArray of the same size as the prealloc size would make
+ // the next call to append(const T&) corrupt the memory.
QVarLengthArray<float, 1> d(1);
for (int i=0; i<30; i++)
d.append(i);