[libcalamares] Fix tests

- the test checks that the default locale is C or en_US .. let's just
  make it so instead of relying on the environment. This fixes tests
  on my dev-laptop, which happens to be set to en_NL (with volapuk
  date format).
This commit is contained in:
Adriaan de Groot 2020-04-21 13:41:04 +02:00
parent f8df49e40f
commit d348977d07

View File

@ -37,6 +37,7 @@ void
LocaleTests::initTestCase() LocaleTests::initTestCase()
{ {
// Otherwise plain get() is dubious in the TranslatableConfiguration tests // Otherwise plain get() is dubious in the TranslatableConfiguration tests
QLocale::setDefault( QLocale( QStringLiteral( "en_US" ) ) );
QVERIFY( ( QLocale().name() == "C" ) || ( QLocale().name() == "en_US" ) ); QVERIFY( ( QLocale().name() == "C" ) || ( QLocale().name() == "en_US" ) );
} }