Fix this test to set a breakpoint at the correct location that will always get hit so it doesn't intermittently fail on MacOSX.

llvm-svn: 221201
This commit is contained in:
Greg Clayton 2014-11-03 23:10:56 +00:00
parent 234d3bce01
commit a3f3fd35ae
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class AttachResumeTestCase(TestBase):
'Process not stopped after interrupt')
# check that this breakpoint is auto-cleared on detach (r204752)
self.runCmd("br set -f main.cpp -l 12")
self.runCmd("br set -f main.cpp -l %u" % (line_number('main.cpp', '// Set breakpoint here')))
self.runCmd("c")
self.assertTrue(wait_for_state(lldb.eStateRunning),

View File

@ -16,7 +16,7 @@ void *start(void *data)
{
if ( idx == 0 )
std::this_thread::sleep_for(std::chrono::microseconds(1));
std::this_thread::sleep_for(std::chrono::seconds(1));
std::this_thread::sleep_for(std::chrono::seconds(1)); // Set breakpoint here
}
return 0;
}