From 939606296e66c67ff8444d6d40c5530b6d6bd531 Mon Sep 17 00:00:00 2001 From: Andreas Reischuck Date: Sat, 20 Jan 2024 10:54:36 +0100 Subject: [PATCH] fix compile debugger without tests --- src/plugins/debugger/gdb/gdbengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 0f4fe9d7729f..80cf39c4b30e 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -4173,7 +4173,11 @@ void GdbEngine::resetInferior() void GdbEngine::handleAdapterStartFailed(const QString &msg, Id settingsIdHint) { showMessage("ADAPTER START FAILED"); +#ifdef WITH_TESTS if (!msg.isEmpty() && !Internal::isTestRun()) { +#else + if (!msg.isEmpty()) { +#endif const QString title = Tr::tr("Adapter Start Failed"); ICore::showWarningWithOptions(title, msg, QString(), settingsIdHint); }