diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2011-03-02 10:18:36 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-03-02 10:18:36 (GMT) |
commit | f37a9b29a4113e57da1756019935dd14d1c722bf (patch) | |
tree | 390e3f3cd88226a92ee10a070719fdbd91cfb469 /tests | |
parent | 124cc3c0dfe18c2e5027a0eee430ac03b48807c0 (diff) | |
download | Qt-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.cpp | 1 |
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())); } |