From a3f3fd35aed02b0ee9b19e85c9a562917f313da4 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 3 Nov 2014 23:10:56 +0000 Subject: [PATCH] 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 --- lldb/test/functionalities/attach_resume/TestAttachResume.py | 2 +- lldb/test/functionalities/attach_resume/main.cpp | 2 +- 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 ef01fda..241bf47 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 f94f6747..9c726d2 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; } -- 2.7.4