From 04d7858250b28e323dfe721e1d5c06424d1f3432 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sat, 20 Jan 2024 22:55:14 +0200 Subject: [PATCH] Debugger: Fix compilation without tests Amends 3f224291e6fca6a7c481728e478b1364aa766724. Change-Id: I0cacfa8be8fa507d8db98dbed506331d007cfb8d Reviewed-by: Jarek Kobus --- src/plugins/debugger/debuggertest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/debuggertest.cpp b/src/plugins/debugger/debuggertest.cpp index 802185d60ea..66a92590d2b 100644 --- a/src/plugins/debugger/debuggertest.cpp +++ b/src/plugins/debugger/debuggertest.cpp @@ -33,12 +33,15 @@ using namespace Core; using namespace ProjectExplorer; using namespace Utils; +#endif // WITH_TESTS namespace Debugger::Internal { - static bool s_testRun = false; bool isTestRun() { return s_testRun; } +} // Debugger::Internal +#ifdef WITH_TESTS +namespace Debugger::Internal { class DebuggerUnitTests : public QObject { Q_OBJECT @@ -245,4 +248,4 @@ QObject *createDebuggerTest() #include "debuggertest.moc" -#endif +#endif // WITH_TESTS