summaryrefslogtreecommitdiffstats
path: root/tests/tst_UpdateChecker.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-01-31 19:21:47 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-02 11:30:38 +0200
commit9249768db5f5b09d67e81370da828e3cb99cc3df (patch)
tree3b915d591fe4cada33da7ebb8d9fd67df7d6a467 /tests/tst_UpdateChecker.cpp
parent6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f (diff)
downloadMultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar.gz
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar.lz
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar.xz
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.zip
NOISSUE Make tests no longer use the MultiMC object
They do not require the application part anymore
Diffstat (limited to 'tests/tst_UpdateChecker.cpp')
-rw-r--r--tests/tst_UpdateChecker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tst_UpdateChecker.cpp b/tests/tst_UpdateChecker.cpp
index 49a4a6a3..75c5dcdd 100644
--- a/tests/tst_UpdateChecker.cpp
+++ b/tests/tst_UpdateChecker.cpp
@@ -140,7 +140,8 @@ slots:
checker.updateChanList(false);
QVERIFY(channelListLoadedSpy.wait());
- checker.m_channels[0].url = QUrl::fromLocalFile(QDir::current().absoluteFilePath("tests/data/")).toString();
+ qDebug() << "CWD:" << QDir::current().absolutePath();
+ checker.m_channels[0].url = findTestDataUrl("tests/data/");
checker.checkForUpdate(channel, false);
@@ -151,6 +152,6 @@ slots:
}
};
-QTEST_GUILESS_MAIN_MULTIMC(UpdateCheckerTest)
+QTEST_GUILESS_MAIN(UpdateCheckerTest)
#include "tst_UpdateChecker.moc"