summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-10-07 23:37:28 +0000
committerJason Molenda <jmolenda@apple.com>2014-10-07 23:37:28 +0000
commitac18ea7abbc2aa839e96cb400653645c4eaed111 (patch)
treed7a2e79f7fc89227c4ab86e19764fb69b35e1898
parent1353fe8bdebddc1d116e7aadc5a53901057b5c84 (diff)
downloadbcm5719-llvm-ac18ea7abbc2aa839e96cb400653645c4eaed111.tar.gz
bcm5719-llvm-ac18ea7abbc2aa839e96cb400653645c4eaed111.zip
Update TestInlinedBreakpoints to reflect the fact that
the default search method is "always" as of r218405. For the purposes of this test, set it back to "headers" to confirm that the file+line breakpoint doesn't work, then verify that it does work with "always". Leave it in "always" setting. <rdar://problem/18564244> llvm-svn: 219251
-rw-r--r--lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py b/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
index 4063d788d48..8c8a92865fd 100644
--- a/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
+++ b/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
@@ -39,6 +39,9 @@ class InlinedBreakpointsTestCase(TestBase):
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+ # With the inline-breakpoint-strategy, our file+line breakpoint should not resolve to a location.
+ self.runCmd('settings set target.inline-breakpoint-strategy headers')
+
# Set a breakpoint and fail because it is in an inlined source implemenation file
lldbutil.run_break_set_by_file_and_line (self, "basic_type.cpp", self.line, num_expected_locations=0)
@@ -46,7 +49,7 @@ class InlinedBreakpointsTestCase(TestBase):
self.runCmd('settings set target.inline-breakpoint-strategy always')
# And add hooks to restore the settings during tearDown().
self.addTearDownHook(
- lambda: self.runCmd("settings set target.inline-breakpoint-strategy headers"))
+ lambda: self.runCmd("settings set target.inline-breakpoint-strategy always"))
lldbutil.run_break_set_by_file_and_line (self, "basic_type.cpp", self.line, num_expected_locations=1, loc_exact=True)
OpenPOWER on IntegriCloud