forked from qt-creator/qt-creator
Debugger: Fix compilation without tests
Amends 3f224291e6
.
Change-Id: I0cacfa8be8fa507d8db98dbed506331d007cfb8d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
6fa2e00425
commit
04d7858250
@@ -33,12 +33,15 @@
|
|||||||
using namespace Core;
|
using namespace Core;
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
#endif // WITH_TESTS
|
||||||
|
|
||||||
namespace Debugger::Internal {
|
namespace Debugger::Internal {
|
||||||
|
|
||||||
static bool s_testRun = false;
|
static bool s_testRun = false;
|
||||||
bool isTestRun() { return s_testRun; }
|
bool isTestRun() { return s_testRun; }
|
||||||
|
} // Debugger::Internal
|
||||||
|
|
||||||
|
#ifdef WITH_TESTS
|
||||||
|
namespace Debugger::Internal {
|
||||||
class DebuggerUnitTests : public QObject
|
class DebuggerUnitTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -245,4 +248,4 @@ QObject *createDebuggerTest()
|
|||||||
|
|
||||||
#include "debuggertest.moc"
|
#include "debuggertest.moc"
|
||||||
|
|
||||||
#endif
|
#endif // WITH_TESTS
|
||||||
|
Reference in New Issue
Block a user