summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-11-03 23:10:56 +0000
committerGreg Clayton <gclayton@apple.com>2014-11-03 23:10:56 +0000
commita3f3fd35aed02b0ee9b19e85c9a562917f313da4 (patch)
tree50db33cb3c8a448d4dbfea350412897347861be9
parent234d3bce014398cf638f36c614888d14467e05d9 (diff)
downloadbcm5719-llvm-a3f3fd35aed02b0ee9b19e85c9a562917f313da4.tar.gz
bcm5719-llvm-a3f3fd35aed02b0ee9b19e85c9a562917f313da4.zip
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
-rw-r--r--lldb/test/functionalities/attach_resume/TestAttachResume.py2
-rw-r--r--lldb/test/functionalities/attach_resume/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/functionalities/attach_resume/TestAttachResume.py b/lldb/test/functionalities/attach_resume/TestAttachResume.py
index ef01fdacca7..241bf47cbd9 100644
--- a/lldb/test/functionalities/attach_resume/TestAttachResume.py
+++ b/lldb/test/functionalities/attach_resume/TestAttachResume.py
@@ -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),
diff --git a/lldb/test/functionalities/attach_resume/main.cpp b/lldb/test/functionalities/attach_resume/main.cpp
index f94f6747f6f..9c726d29947 100644
--- a/lldb/test/functionalities/attach_resume/main.cpp
+++ b/lldb/test/functionalities/attach_resume/main.cpp
@@ -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;
}
OpenPOWER on IntegriCloud