m_process(),
m_thread(),
m_listener(),
- m_verbose(false)
+ m_verbose(false),
+ m_step(0)
{
SBDebugger::Initialize();
SBHostOS::ThreadCreated ("<lldb-tester.app.main>");
void
TestCase::Loop ()
{
- int step = 0;
SBEvent evt;
while (true)
{
exit(1);
}
if (m_verbose)
- printf("RUNNING STEP %d\n",step);
+ printf("RUNNING STEP %d\n",m_step);
ActionWanted action;
- TestStep(step, action);
- step++;
+ TestStep(m_step, action);
+ m_step++;
SBError err;
switch (action.type)
{
if (action.thread.IsValid() == false)
{
if (m_verbose) Xcode::RunCommand(m_debugger,"bt all",true);
- if (m_verbose) printf("[finish invalid] I am gonna die at step %d\n",step);
+ if (m_verbose) printf("[finish invalid] I am gonna die at step %d\n",m_step);
exit(501);
}
m_process.SetSelectedThread(action.thread);
if (action.thread.IsValid() == false)
{
if (m_verbose) Xcode::RunCommand(m_debugger,"bt all",true);
- if (m_verbose) printf("[next invalid] I am gonna die at step %d\n",step);
+ if (m_verbose) printf("[next invalid] I am gonna die at step %d\n",m_step);
exit(500);
}
m_process.SetSelectedThread(action.thread);
}
}
}
- if (GetVerbose()) printf("I am gonna die at step %d\n",step);
+ if (GetVerbose()) printf("I am gonna die at step %d\n",m_step);
}
void