diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-08-07 12:45:37 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-08-12 07:56:39 +0000 |
commit | 10b46fe47489ae3e711fa52a7281f30aad6a69e7 (patch) | |
tree | 965a49a691658f18657ab6a2c4a34526327cb27c /tests | |
parent | 8de79dbcecb2ac3eb9c07d9e401c25733e1dc192 (diff) |
Autotest: Fix test when running on a non-Unicode-capable locale
Like my default FreeBSD environment.
Change-Id: I3868166e5efc45538544fffd14d8a7f2dffa6ac9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/io/qtemporaryfile/tst_qtemporaryfile.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/corelib/io/qtemporaryfile/tst_qtemporaryfile.cpp b/tests/auto/corelib/io/qtemporaryfile/tst_qtemporaryfile.cpp index 59cd3a8411..ab6b435125 100644 --- a/tests/auto/corelib/io/qtemporaryfile/tst_qtemporaryfile.cpp +++ b/tests/auto/corelib/io/qtemporaryfile/tst_qtemporaryfile.cpp @@ -760,9 +760,12 @@ void tst_QTemporaryFile::QTBUG_4796_data() QTest::newRow("blaXXXXXX") << QString("bla") << QString() << true; QTest::newRow("XXXXXXbla") << QString() << QString("bla") << true; QTest::newRow("does-not-exist/qt_temp.XXXXXX") << QString("does-not-exist/qt_temp") << QString() << false; - QTest::newRow("XXXXXX<unicode>") << QString() << unicode << true; - QTest::newRow("<unicode>XXXXXX") << unicode << QString() << true; - QTest::newRow("<unicode>XXXXXX<unicode>") << unicode << unicode << true; + + if (canHandleUnicodeFileNames()) { + QTest::newRow("XXXXXX<unicode>") << QString() << unicode << true; + QTest::newRow("<unicode>XXXXXX") << unicode << QString() << true; + QTest::newRow("<unicode>XXXXXX<unicode>") << unicode << unicode << true; + } } void tst_QTemporaryFile::QTBUG_4796() |