summaryrefslogtreecommitdiffstats
path: root/src/tests/mx2test.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-04 04:36:26 +0300
commit19201b658c807f6ffa3c9dcaa02c90b38312e2d7 (patch)
tree4f1104cdbcf97f025c6adfc14d05b592acadab9e /src/tests/mx2test.cpp
parentadf2fa32500d33417b6e6ac9e2867f3ab3eede34 (diff)
downloadkrecipes-19201b658c807f6ffa3c9dcaa02c90b38312e2d7.tar.gz
krecipes-19201b658c807f6ffa3c9dcaa02c90b38312e2d7.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>
Diffstat (limited to 'src/tests/mx2test.cpp')
-rw-r--r--src/tests/mx2test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/mx2test.cpp b/src/tests/mx2test.cpp
index 676eb8b..63a9e37 100644
--- a/src/tests/mx2test.cpp
+++ b/src/tests/mx2test.cpp
@@ -28,7 +28,8 @@ main(int argc, char *argv[])
TDEAboutData *about = new TDEAboutData("mx2test", I18N_NOOP("mx2test"), "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 MX2Importer.\n");
MX2Importer importer;