summaryrefslogtreecommitdiffstats
path: root/src/tests/nyctest.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-04 03:32:00 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-05 02:03:48 +0300
commit8f59af1291a8e2536b311f86e1c0b442e7ad26df (patch)
tree0521a7a156eec9b8821206b9b55756b256c8c470 /src/tests/nyctest.cpp
parent7b2d5032f9573eaafa300a3159971e37125fd2d9 (diff)
downloadkrecipes-8f59af12.tar.gz
krecipes-8f59af12.zip
Fix tests' execution without X11
Note: kretest segfaults without a GUI because it makes use of TQPicture Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 19201b658c807f6ffa3c9dcaa02c90b38312e2d7)
Diffstat (limited to 'src/tests/nyctest.cpp')
-rw-r--r--src/tests/nyctest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/nyctest.cpp b/src/tests/nyctest.cpp
index ecc01bb..a228cba 100644
--- a/src/tests/nyctest.cpp
+++ b/src/tests/nyctest.cpp
@@ -27,7 +27,8 @@ main(int argc, char *argv[])
TDEAboutData *about = new TDEAboutData("nyctest", I18N_NOOP("nyctest"), "1.0",
nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr);
TDECmdLineArgs::init(argc, argv, about);
- TDEApplication a;
+ TDEApplication::disableAutoDcopRegistration(); // will reduce noise when we run without X11
+ TDEApplication a(/* allowStyles =*/ false, /* GUIenabled =*/ false);
printf("Creating NYCGenericImporter.\n");
NYCGenericImporter importer;