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/xml/qxmlstream | |
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/xml/qxmlstream')
-rw-r--r-- | tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp b/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp index cba7979605..2320483fca 100644 --- a/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp +++ b/tests/auto/corelib/xml/qxmlstream/tst_qxmlstream.cpp @@ -570,7 +570,7 @@ private slots: void clear() const; void checkCommentIndentation() const; void checkCommentIndentation_data() const; - void qtbug9196_crash() const; + void crashInXmlStreamReader() const; void hasError() const; private: @@ -1479,9 +1479,10 @@ void tst_QXmlStream::checkCommentIndentation() const // task 256468 QCOMPARE(output, expectedOutput); } -void tst_QXmlStream::qtbug9196_crash() const +// This is a regression test for QTBUG-9196, where the series of tags used +// in the test caused a crash in the XML stream reader. +void tst_QXmlStream::crashInXmlStreamReader() const { - // the following input used to produce a crash in the stream reader QByteArray ba("<a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a>" "<a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a><a></a>"); QXmlStreamReader xml(ba); |