Debugger: Fix compilation without tests

Amends 3f224291e6.

Change-Id: I0cacfa8be8fa507d8db98dbed506331d007cfb8d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Orgad Shaneh
2024-01-20 22:55:14 +02:00
committed by Orgad Shaneh
parent 6fa2e00425
commit 04d7858250

View File

@@ -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