diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -18,13 +18,13 @@ # Include src so we have access to config-kcrash.h include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src) -#ecm_add_tests( -# coreconfigtest.cpp -# kcrashtest.cpp -# LINK_LIBRARIES Qt5::Core Qt5::Test -#) +ecm_add_tests( + coreconfigtest.cpp + kcrashtest.cpp + LINK_LIBRARIES Qt5::Core Qt5::Test +) -#add_executable(test_crasher test_crasher.cpp) -#target_link_libraries(test_crasher Qt5::Widgets KF5::Crash) -#ecm_mark_as_test(test_crasher) -##ecm_mark_nongui_executable(test_crasher) +add_executable(test_crasher test_crasher.cpp) +target_link_libraries(test_crasher Qt5::Widgets KF5::Crash) +ecm_mark_as_test(test_crasher) +#ecm_mark_nongui_executable(test_crasher) diff --git a/autotests/kcrashtest.cpp b/autotests/kcrashtest.cpp --- a/autotests/kcrashtest.cpp +++ b/autotests/kcrashtest.cpp @@ -55,13 +55,18 @@ QProcess proc; QString processName; -#ifdef Q_OS_WIN + +#if 0 +// disable this test on windows as it causes severe issues on the CI system +//#ifdef Q_OS_WIN QVERIFY(QFile::exists("./test_crasher.exe")); processName = "test_crasher.exe"; -#else +#endif +//#else QVERIFY(QFile::exists("./test_crasher")); processName = QStringLiteral("./test_crasher"); -#endif +//#endif + //qDebug() << proc.args(); QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); env.insert(QStringLiteral("ASAN_OPTIONS"), QStringLiteral("handle_segv=0,poison_heap=0")); // Disable ASAN