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
parent
463835b306
commit
4613e1d2c1
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue