summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-03-02 10:18:36 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-03-02 10:18:36 (GMT)
commitf37a9b29a4113e57da1756019935dd14d1c722bf (patch)
tree390e3f3cd88226a92ee10a070719fdbd91cfb469 /tests
parent124cc3c0dfe18c2e5027a0eee430ac03b48807c0 (diff)
downloadQt-f37a9b29a4113e57da1756019935dd14d1c722bf.zip
Qt-f37a9b29a4113e57da1756019935dd14d1c722bf.tar.gz
Qt-f37a9b29a4113e57da1756019935dd14d1c722bf.tar.bz2
Fix qstringbuilder test.
when QT_NO_CAST_FROM_ASCII is not defined, the string is assigned to an string with more than ascii. So if the codecForLocale is not latin1, it would fail.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qstringbuilder1/stringbuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qstringbuilder1/stringbuilder.cpp b/tests/auto/qstringbuilder1/stringbuilder.cpp
index 1ea7347..6faff35 100644
--- a/tests/auto/qstringbuilder1/stringbuilder.cpp
+++ b/tests/auto/qstringbuilder1/stringbuilder.cpp
@@ -111,5 +111,6 @@ void runScenario()
QCOMPARE(r, r2);
#endif
+ string = QString::fromLatin1(LITERAL);
QCOMPARE(QByteArray(qPrintable(string P string)), QByteArray(string.toLatin1() + string.toLatin1()));
}