From b0bfffcd904503fecec239225f88f7ae4dc14dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 1 May 2016 03:49:46 +0200 Subject: NOISSUE revert to dumping all build artifacts to the root This fixes unit tests on Windows... Windows has no mechanism to set library lookup path. --- api/logic/updater/DownloadTask_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/logic/updater/DownloadTask_test.cpp') diff --git a/api/logic/updater/DownloadTask_test.cpp b/api/logic/updater/DownloadTask_test.cpp index edf0f507..5b88b366 100644 --- a/api/logic/updater/DownloadTask_test.cpp +++ b/api/logic/updater/DownloadTask_test.cpp @@ -12,7 +12,7 @@ using namespace GoUpdate; FileSourceList encodeBaseFile(const char *suffix) { - auto base = qApp->applicationDirPath(); + auto base = QDir::currentPath(); QUrl localFile = QUrl::fromLocalFile(base + suffix); QString localUrlString = localFile.toString(QUrl::FullyEncoded); auto item = FileSource("http", localUrlString); @@ -179,7 +179,7 @@ slots: OperationList operations; - processFileLists(currentVersion, newVersion, QCoreApplication::applicationDirPath(), tempFolder, new NetJob("Dummy"), operations); + processFileLists(currentVersion, newVersion, QDir::currentPath(), tempFolder, new NetJob("Dummy"), operations); qDebug() << (operations == expectedOperations); qDebug() << operations; qDebug() << expectedOperations; -- cgit v1.2.3