Commit 73bcbdfc authored by hjk's avatar hjk

Debugger: Disable state machine test

Incomplete, and doesn't work with shadow builds.

Change-Id: I491f0a48d292bfe4f7f3b318d2e5e48bcb0cabd7
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1359cccb
......@@ -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 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::testStateMachine3()
{
testUnloadProject();
testFinished();
}
//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::testStateMachine2()
//{
// DebuggerStartParameters sp;
// fillParameters(&sp, currentKit());
// sp.executable = activeLocalRunConfiguration()->executable();
// sp.testCase = TestNoBoundsOfCurrentFunction;
// testRunProject(sp, TestCallBack(this, "testStateMachine3"));
//}
//void DebuggerPluginPrivate::testStateMachine3()
//{
// testUnloadProject();
// testFinished();
//}
///////////////////////////////////////////////////////////////////////////
......
......@@ -77,7 +77,7 @@ private:
#ifdef WITH_TESTS
private slots:
void testBenchmark();
void testStateMachine();
// void testStateMachine();
#endif
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment