From 8f7f1cacd60f150f5d2520d3c9c47d31322fd4c1 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Thu, 5 Jul 2018 22:34:04 +0200 Subject: tests: make qprefdisplay test file Remove display tests from testpreferences and make a new file Signed-off-by: Jan Iversen --- tests/testqml.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/testqml.cpp') diff --git a/tests/testqml.cpp b/tests/testqml.cpp index 8ba04da90..0b75d8d48 100644 --- a/tests/testqml.cpp +++ b/tests/testqml.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "core/settings/qPref.h" #include "core/qt-gui.h" @@ -18,8 +19,12 @@ int main(int argc, char **argv) QTEST_ADD_GPU_BLACKLIST_SUPPORT QTEST_SET_MAIN_SOURCE_PATH - // check that qPref exists - new qPref; + // check that qPref classes exists + qPref::instance(); + qPrefDisplay::instance(); + + // prepare Qt application + new QApplication(argc, argv); // check that we have a directory if (argc < 2) { -- cgit v1.2.3-70-g09d2