diff options
| author | Jim Ingham <jingham@apple.com> | 2012-09-22 00:05:11 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2012-09-22 00:05:11 +0000 |
| commit | 63dfc725a7709feee23d9bf8969ccbdd04ce9c87 (patch) | |
| tree | 5279ac20e11544907ef22e041f28dc2e123c7be0 /lldb/test/python_api/formatters/TestFormattersSBAPI.py | |
| parent | 1391cc7d516687b293ba713140a60efd9ae2acd2 (diff) | |
| download | bcm5719-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/python_api/formatters/TestFormattersSBAPI.py')
| -rw-r--r-- | lldb/test/python_api/formatters/TestFormattersSBAPI.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lldb/test/python_api/formatters/TestFormattersSBAPI.py b/lldb/test/python_api/formatters/TestFormattersSBAPI.py index ef9ca16282c..d304a17dcf5 100644 --- a/lldb/test/python_api/formatters/TestFormattersSBAPI.py +++ b/lldb/test/python_api/formatters/TestFormattersSBAPI.py @@ -4,6 +4,7 @@ import os, sys, time import unittest2 import lldb from lldbtest import * +import lldbutil class SBFormattersAPITestCase(TestBase): @@ -42,10 +43,7 @@ class SBFormattersAPITestCase(TestBase): """Test Python APIs for working with formatters""" self.runCmd("file a.out", CURRENT_EXECUTABLE_SET) - self.expect("breakpoint set -f main.cpp -l %d" % self.line, - BREAKPOINT_CREATED, - startstr = "Breakpoint created: 1: file ='main.cpp', line = %d, locations = 1" % - self.line) + lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) self.runCmd("run", RUN_SUCCEEDED) @@ -304,10 +302,7 @@ class SBFormattersAPITestCase(TestBase): """Test that one can have the public API return non-synthetic SBValues if desired""" self.runCmd("file no_synth", CURRENT_EXECUTABLE_SET) - self.expect("breakpoint set -f main.cpp -l %d" % self.line, - BREAKPOINT_CREATED, - startstr = "Breakpoint created: 1: file ='main.cpp', line = %d, locations = 1" % - self.line) + lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) self.runCmd("run", RUN_SUCCEEDED) |

