Commit 33833461 authored by David Faure's avatar David Faure
Browse files

[autotests] Enable test mode in QStandardPaths to avoid interference from user settings.

parent 9a2613af
......@@ -20,6 +20,7 @@
#include "maintextjobtest.h"
#include <QTextCodec>
#include <QStandardPaths>
#include <QDebug>
#include <KIconLoader>
......@@ -47,6 +48,7 @@ QTEST_MAIN(MainTextJobTest)
void MainTextJobTest::initTestCase()
{
qputenv("KDE_FORK_SLAVES", "yes"); // To avoid a runtime dependency on klauncher
QStandardPaths::setTestModeEnabled(true);
}
void MainTextJobTest::testPlainText()
......
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