diff --git a/tests/autotests/cookiestest.cpp b/tests/autotests/cookiestest.cpp index 1cc4ea43f..1d102b83e 100644 --- a/tests/autotests/cookiestest.cpp +++ b/tests/autotests/cookiestest.cpp @@ -16,6 +16,7 @@ * along with this program. If not, see . * ============================================================ */ #include "cookiestest.h" +#include "datapaths.h" #include "settings.h" #include @@ -23,7 +24,8 @@ void CookiesTest::initTestCase() { - Settings::createSettings(QDir::tempPath() + "/QupZilla-test.ini"); + DataPaths::setCurrentProfilePath(QDir::tempPath() + "qz-test"); + Settings::createSettings(QDir::tempPath() + "qz-test/settings.ini"); m_cookieJar = new CookieJar_Tst; } diff --git a/tests/autotests/cookiestest.h b/tests/autotests/cookiestest.h index d19f9b9ac..e9377bc96 100644 --- a/tests/autotests/cookiestest.h +++ b/tests/autotests/cookiestest.h @@ -26,7 +26,7 @@ class CookieJar_Tst : public CookieJar { public: explicit CookieJar_Tst() - : CookieJar(QString()) + : CookieJar() { }