From 19201b658c807f6ffa3c9dcaa02c90b38312e2d7 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Mon, 4 Aug 2025 03:32:00 +0300 Subject: Fix tests' execution without X11 Note: kretest segfaults without a GUI because it makes use of TQPicture Signed-off-by: Alexander Golubev --- src/tests/mx2test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tests/mx2test.cpp') 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; -- cgit v1.2.3