New CallNext action for the test case that causes the next action in the sequence to be called right away

llvm-svn: 179578
This commit is contained in:
Enrico Granata 2013-04-15 23:52:53 +00:00
parent a75418dbd6
commit 6f2b4807ee
2 changed files with 12 additions and 0 deletions

View File

@ -255,6 +255,7 @@ TestCase::Loop ()
if (call_test_step)
{
do_the_call:
if (m_verbose)
printf("RUNNING STEP %d\n",m_step);
ActionWanted action;
@ -305,6 +306,9 @@ TestCase::Loop ()
printf("kill\n");
m_process.Kill();
return;
case ActionWanted::Type::eCallNext:
goto do_the_call;
break;
}
}

View File

@ -31,6 +31,7 @@ public:
eContinue,
eStepOut,
eRelaunch,
eCallNext,
eKill
} type;
lldb::SBThread thread;
@ -78,6 +79,13 @@ public:
type = Type::eKill;
thread = lldb::SBThread();
}
void
CallNext ()
{
type = Type::eCallNext;
thread = lldb::SBThread();
}
};
virtual