diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-01-22 03:50:44 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-01-22 03:50:44 +0000 |
commit | 1efb72f8a404533e604f370e0e4cea4e948ae6e1 (patch) | |
tree | a697a17ce7a6b85870232a7210bebbc1cd990c48 /lldb/packages/Python/lldbsuite/test/functionalities/breakpoint | |
parent | bfdba5e4fc351d3de15d5536a1d4e04a16573ddf (diff) | |
download | bcm5719-llvm-1efb72f8a404533e604f370e0e4cea4e948ae6e1.tar.gz bcm5719-llvm-1efb72f8a404533e604f370e0e4cea4e948ae6e1.zip |
[Test] Fix up tests affected by the new LLVM header.
The new LLVM header is one line shorter than the old one, which lead to
some test failures. Ideally tests should rely on line numbers for
breakpoints or output, but that's a different discussion. Hopefully this
turns the bots green again.
llvm-svn: 351779
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/breakpoint')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py index 07032cc0380..f06fb07b3bf 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py @@ -24,12 +24,12 @@ class BreakpointByLineAndColumnTestCase(TestBase): self.build() main_c = lldb.SBFileSpec("main.c") _, _, _, breakpoint = lldbutil.run_to_line_breakpoint(self, - main_c, 20, 50) + main_c, 19, 50) self.expect("fr v did_call", substrs='1') in_then = False for i in range(breakpoint.GetNumLocations()): b_loc = breakpoint.GetLocationAtIndex(i).GetAddress().GetLineEntry() - self.assertEqual(b_loc.GetLine(), 20) + self.assertEqual(b_loc.GetLine(), 19) in_then |= b_loc.GetColumn() == 50 self.assertTrue(in_then) @@ -38,11 +38,11 @@ class BreakpointByLineAndColumnTestCase(TestBase): def testBreakpointByLine(self): self.build() main_c = lldb.SBFileSpec("main.c") - _, _, _, breakpoint = lldbutil.run_to_line_breakpoint(self, main_c, 20) + _, _, _, breakpoint = lldbutil.run_to_line_breakpoint(self, main_c, 19) self.expect("fr v did_call", substrs='0') in_condition = False for i in range(breakpoint.GetNumLocations()): b_loc = breakpoint.GetLocationAtIndex(i).GetAddress().GetLineEntry() - self.assertEqual(b_loc.GetLine(), 20) + self.assertEqual(b_loc.GetLine(), 19) in_condition |= b_loc.GetColumn() < 30 self.assertTrue(in_condition) |