tests: set locale in testprofile.cpp to "C"

In locales using comma as decimal separator the test fails.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-09 20:32:59 +01:00
parent 845ac82b57
commit 7aefd704c2

View file

@ -30,6 +30,8 @@ void TestProfile::init()
QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationName("Subsurface");
QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); QCoreApplication::setOrganizationDomain("subsurface.hohndel.org");
QCoreApplication::setApplicationName("Subsurface"); QCoreApplication::setApplicationName("Subsurface");
setlocale(LC_ALL, "C");
} }
void TestProfile::testProfileExport() void TestProfile::testProfileExport()
{ {