From d348977d07b37ddd87bd91aa44287db25c3c415f Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 21 Apr 2020 13:41:04 +0200 Subject: [PATCH] [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). --- src/libcalamares/locale/Tests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcalamares/locale/Tests.cpp b/src/libcalamares/locale/Tests.cpp index bf71fb0a2..6cbe980be 100644 --- a/src/libcalamares/locale/Tests.cpp +++ b/src/libcalamares/locale/Tests.cpp @@ -37,6 +37,7 @@ void LocaleTests::initTestCase() { // Otherwise plain get() is dubious in the TranslatableConfiguration tests + QLocale::setDefault( QLocale( QStringLiteral( "en_US" ) ) ); QVERIFY( ( QLocale().name() == "C" ) || ( QLocale().name() == "en_US" ) ); }