forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
//}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
@@ -77,7 +77,7 @@ private:
|
||||
#ifdef WITH_TESTS
|
||||
private slots:
|
||||
void testBenchmark();
|
||||
void testStateMachine();
|
||||
// void testStateMachine();
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user