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>
This commit is contained in:
parent
8de79dbcec
commit
10b46fe474
@ -760,9 +760,12 @@ void tst_QTemporaryFile::QTBUG_4796_data()
|
|||||||
QTest::newRow("blaXXXXXX") << QString("bla") << QString() << true;
|
QTest::newRow("blaXXXXXX") << QString("bla") << QString() << true;
|
||||||
QTest::newRow("XXXXXXbla") << QString() << QString("bla") << 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("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;
|
if (canHandleUnicodeFileNames()) {
|
||||||
QTest::newRow("<unicode>XXXXXX<unicode>") << unicode << unicode << true;
|
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()
|
void tst_QTemporaryFile::QTBUG_4796()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user