Android: Fix QCollator test

On Android the POSIX implementation of QCollator is used, and
this does not support setting other locales than the default.

Change-Id: I25d23949341fc555e8be4f6836ae68cc8813cc46
Reviewed-by: BogDan Vatra <bogdan@kde.org>
bb10
Eskil Abrahamsen Blomfeldt 2015-01-05 11:03:46 +01:00
parent 463835b306
commit 4613e1d2c1
1 changed files with 5 additions and 0 deletions

View File

@ -170,6 +170,11 @@ void tst_QCollator::compare()
QCollator collator(locale);
#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_NO_SDK)
if (collator.locale() != QLocale())
QSKIP("Posix implementation of collation only supports default locale");
#endif
if (numericMode)
collator.setNumericMode(true);