From 73bcbdfcef9ab9986c35d0bf64b73a377cfc1ad4 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 10 Sep 2013 13:37:31 +0200 Subject: [PATCH] Debugger: Disable state machine test Incomplete, and doesn't work with shadow builds. Change-Id: I491f0a48d292bfe4f7f3b318d2e5e48bcb0cabd7 Reviewed-by: Christian Stenger Reviewed-by: hjk --- src/plugins/debugger/debuggerplugin.cpp | 62 ++++++++++++------------- src/plugins/debugger/debuggerplugin.h | 2 +- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 19cb4201d75..04fe1f4ea40 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -948,9 +948,9 @@ public slots: void testRunProject(const DebuggerStartParameters &sp, const TestCallBack &cb); void testRunControlFinished(); - void testStateMachine1(); - void testStateMachine2(); - void testStateMachine3(); +// void testStateMachine1(); +// void testStateMachine2(); +// void testStateMachine3(); void testBenchmark1(); @@ -3552,37 +3552,37 @@ void DebuggerPluginPrivate::testFinished() /////////////////////////////////////////////////////////////////////////// -void DebuggerPlugin::testStateMachine() -{ - theDebuggerCore->testStateMachine1(); -} +//void DebuggerPlugin::testStateMachine() +//{ +// theDebuggerCore->testStateMachine1(); +//} -void DebuggerPluginPrivate::testStateMachine1() -{ - m_testSuccess = true; - QString proFile = ICore::resourcePath(); - if (Utils::HostOsInfo::isMacHost()) - proFile += QLatin1String("/../.."); - proFile += QLatin1String("/../../tests/manual/debugger/simple/simple.pro"); - testLoadProject(proFile, TestCallBack(this, "testStateMachine2")); - QVERIFY(m_testSuccess); - QTestEventLoop::instance().enterLoop(20); -} +//void DebuggerPluginPrivate::testStateMachine1() +//{ +// m_testSuccess = true; +// QString proFile = ICore::resourcePath(); +// if (Utils::HostOsInfo::isMacHost()) +// proFile += QLatin1String("/../.."); +// proFile += QLatin1String("/../../tests/manual/debugger/simple/simple.pro"); +// testLoadProject(proFile, TestCallBack(this, "testStateMachine2")); +// QVERIFY(m_testSuccess); +// QTestEventLoop::instance().enterLoop(20); +//} -void DebuggerPluginPrivate::testStateMachine2() -{ - DebuggerStartParameters sp; - fillParameters(&sp, currentKit()); - sp.executable = activeLocalRunConfiguration()->executable(); - sp.testCase = TestNoBoundsOfCurrentFunction; - testRunProject(sp, TestCallBack(this, "testStateMachine3")); -} +//void DebuggerPluginPrivate::testStateMachine2() +//{ +// DebuggerStartParameters sp; +// fillParameters(&sp, currentKit()); +// sp.executable = activeLocalRunConfiguration()->executable(); +// sp.testCase = TestNoBoundsOfCurrentFunction; +// testRunProject(sp, TestCallBack(this, "testStateMachine3")); +//} -void DebuggerPluginPrivate::testStateMachine3() -{ - testUnloadProject(); - testFinished(); -} +//void DebuggerPluginPrivate::testStateMachine3() +//{ +// testUnloadProject(); +// testFinished(); +//} /////////////////////////////////////////////////////////////////////////// diff --git a/src/plugins/debugger/debuggerplugin.h b/src/plugins/debugger/debuggerplugin.h index 1c461c8b764..c0f6429742f 100644 --- a/src/plugins/debugger/debuggerplugin.h +++ b/src/plugins/debugger/debuggerplugin.h @@ -77,7 +77,7 @@ private: #ifdef WITH_TESTS private slots: void testBenchmark(); - void testStateMachine(); +// void testStateMachine(); #endif };