Commit 9c17f75e authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Force en_US locale for signalplotter formatting checks

E.g. with a german locale '4.0' is formatted as '4,0' and the test fails.
parent aa6f81c8
...@@ -341,6 +341,8 @@ void TestSignalPlotter::testNiceRangeCalculation() ...@@ -341,6 +341,8 @@ void TestSignalPlotter::testNiceRangeCalculation()
void TestSignalPlotter::testNegativeMinimumRange() void TestSignalPlotter::testNegativeMinimumRange()
{ {
QLocale().setDefault(QLocale(QLocale::English, QLocale::UnitedStates));
s->setMinimumValue(-1000); s->setMinimumValue(-1000);
s->setMaximumValue(4000); s->setMaximumValue(4000);
QCOMPARE(s->minimumValue(), -1000.0); QCOMPARE(s->minimumValue(), -1000.0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment