Debugger: Disable state machine test

Incomplete, and doesn't work with shadow builds.

Change-Id: I491f0a48d292bfe4f7f3b318d2e5e48bcb0cabd7
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-09-10 13:37:31 +02:00
parent 1359cccb9f
commit 73bcbdfcef
2 changed files with 32 additions and 32 deletions

View File

@@ -948,9 +948,9 @@ public slots:
void testRunProject(const DebuggerStartParameters &sp, const TestCallBack &cb); void testRunProject(const DebuggerStartParameters &sp, const TestCallBack &cb);
void testRunControlFinished(); void testRunControlFinished();
void testStateMachine1(); // void testStateMachine1();
void testStateMachine2(); // void testStateMachine2();
void testStateMachine3(); // void testStateMachine3();
void testBenchmark1(); void testBenchmark1();
@@ -3552,37 +3552,37 @@ void DebuggerPluginPrivate::testFinished()
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
void DebuggerPlugin::testStateMachine() //void DebuggerPlugin::testStateMachine()
{ //{
theDebuggerCore->testStateMachine1(); // theDebuggerCore->testStateMachine1();
} //}
void DebuggerPluginPrivate::testStateMachine1() //void DebuggerPluginPrivate::testStateMachine1()
{ //{
m_testSuccess = true; // m_testSuccess = true;
QString proFile = ICore::resourcePath(); // QString proFile = ICore::resourcePath();
if (Utils::HostOsInfo::isMacHost()) // if (Utils::HostOsInfo::isMacHost())
proFile += QLatin1String("/../.."); // proFile += QLatin1String("/../..");
proFile += QLatin1String("/../../tests/manual/debugger/simple/simple.pro"); // proFile += QLatin1String("/../../tests/manual/debugger/simple/simple.pro");
testLoadProject(proFile, TestCallBack(this, "testStateMachine2")); // testLoadProject(proFile, TestCallBack(this, "testStateMachine2"));
QVERIFY(m_testSuccess); // QVERIFY(m_testSuccess);
QTestEventLoop::instance().enterLoop(20); // QTestEventLoop::instance().enterLoop(20);
} //}
void DebuggerPluginPrivate::testStateMachine2() //void DebuggerPluginPrivate::testStateMachine2()
{ //{
DebuggerStartParameters sp; // DebuggerStartParameters sp;
fillParameters(&sp, currentKit()); // fillParameters(&sp, currentKit());
sp.executable = activeLocalRunConfiguration()->executable(); // sp.executable = activeLocalRunConfiguration()->executable();
sp.testCase = TestNoBoundsOfCurrentFunction; // sp.testCase = TestNoBoundsOfCurrentFunction;
testRunProject(sp, TestCallBack(this, "testStateMachine3")); // testRunProject(sp, TestCallBack(this, "testStateMachine3"));
} //}
void DebuggerPluginPrivate::testStateMachine3() //void DebuggerPluginPrivate::testStateMachine3()
{ //{
testUnloadProject(); // testUnloadProject();
testFinished(); // testFinished();
} //}
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

View File

@@ -77,7 +77,7 @@ private:
#ifdef WITH_TESTS #ifdef WITH_TESTS
private slots: private slots:
void testBenchmark(); void testBenchmark();
void testStateMachine(); // void testStateMachine();
#endif #endif
}; };