[libcalamares] Repair test for old Qt

- Qt 5.11 and early 5.12 just don't support Esperanto at all
main
Adriaan de Groot 5 years ago
parent c1d7d3daa6
commit e2bf62a64b

@ -120,10 +120,11 @@ LocaleTests::testEsperanto()
{
#if QT_VERSION < QT_VERSION_CHECK( 5, 12, 2 )
QCOMPARE( QLocale( "eo" ).language(), QLocale::C );
QCOMPARE( QLocale( QLocale::Esperanto ).language(), QLocale::English );
#else
QCOMPARE( QLocale( "eo" ).language(), QLocale::Esperanto );
#endif
QCOMPARE( QLocale( QLocale::Esperanto ).language(), QLocale::Esperanto ); // Probably fails on 5.12, too
#endif
}
void

Loading…
Cancel
Save