Use QFINDTESTDATA, which can find files easily

This commit is contained in:
Luca Beltrame 2015-08-25 16:54:40 +02:00
parent 842125bc0d
commit 3fadd93cff
2 changed files with 1 additions and 3 deletions

View file

@ -6,5 +6,3 @@ ecm_add_test(test_danbooru_post.cpp LINK_LIBRARIES
Qt5::Core
danbooru
TEST_NAME test_danbooru_post)
configure_file(konachan.json konachan.json COPYONLY)

View file

@ -31,7 +31,7 @@ class TestDanbooruPost: public QObject
Q_OBJECT
private:
QLatin1String m_fileName = QLatin1String("konachan.json");
QString m_fileName = QFINDTESTDATA("konachan.json");
Danbooru::DanbooruPost* m_post = nullptr;
QVariantMap m_data;