Commit 9f26c9fb authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Set language to C (English)

Otherwise the "(disc 2)" part of the test may fail
parent b68ff2e2
...@@ -11,6 +11,12 @@ ...@@ -11,6 +11,12 @@
#include "config-musicbrainz.h" #include "config-musicbrainz.h"
#include <QTest> #include <QTest>
static void setEnvironment()
{
qputenv("LANG", "C.UTF-8");
qputenv("LANGUAGE", "C.UTF-8");
}
void MusicBrainzTestSeveralDiscs::testLookup() void MusicBrainzTestSeveralDiscs::testLookup()
{ {
using namespace KCDDB; using namespace KCDDB;
...@@ -121,4 +127,6 @@ void MusicBrainzTestSeveralDiscs::testLookup() ...@@ -121,4 +127,6 @@ void MusicBrainzTestSeveralDiscs::testLookup()
} }
} }
Q_COREAPP_STARTUP_FUNCTION(setEnvironment)
QTEST_GUILESS_MAIN(MusicBrainzTestSeveralDiscs) QTEST_GUILESS_MAIN(MusicBrainzTestSeveralDiscs)
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