summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstringbuilder1
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-03-02 11:18:36 +0100
committerOlivier Goffart <olivier.goffart@nokia.com>2011-03-02 11:18:36 +0100
commitf37a9b29a4113e57da1756019935dd14d1c722bf (patch)
tree390e3f3cd88226a92ee10a070719fdbd91cfb469 /tests/auto/qstringbuilder1
parent124cc3c0dfe18c2e5027a0eee430ac03b48807c0 (diff)
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/auto/qstringbuilder1')
-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 1ea734702d..6faff356f9 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()));
}