summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-09-22 00:05:11 +0000
committerJim Ingham <jingham@apple.com>2012-09-22 00:05:11 +0000
commit63dfc725a7709feee23d9bf8969ccbdd04ce9c87 (patch)
tree5279ac20e11544907ef22e041f28dc2e123c7be0 /lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
parent1391cc7d516687b293ba713140a60efd9ae2acd2 (diff)
downloadbcm5719-llvm-63dfc725a7709feee23d9bf8969ccbdd04ce9c87.tar.gz
bcm5719-llvm-63dfc725a7709feee23d9bf8969ccbdd04ce9c87.zip
Fix all the test case breakages caused by folks writing tests all over the place that depended explicitly
on the output of "break set". Please don't do this sort of thing!!!!! llvm-svn: 164433
Diffstat (limited to 'lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py')
-rw-r--r--lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py b/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
index 92ff0e6e62c..55c618432c6 100644
--- a/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
+++ b/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
@@ -4,6 +4,7 @@ from out of scope to in scope when stopped at the breakpoint."""
import unittest2
import lldb
from lldbtest import *
+import lldbutil
class NonOverlappingIndexVariableCase(TestBase):
@@ -26,10 +27,7 @@ class NonOverlappingIndexVariableCase(TestBase):
exe = os.path.join(os.getcwd(), exe_name)
self.runCmd("file %s" % exe, CURRENT_EXECUTABLE_SET)
- self.expect('breakpoint set -f %s -l %d' % (self.source, self.line_to_break),
- BREAKPOINT_CREATED,
- startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
- (self.source, self.line_to_break))
+ lldbutil.run_break_set_by_file_and_line (self, self.source, self.line_to_break, num_expected_locations=1, loc_exact=True)
self.runCmd("run", RUN_SUCCEEDED)
OpenPOWER on IntegriCloud