From 63dfc725a7709feee23d9bf8969ccbdd04ce9c87 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Sat, 22 Sep 2012 00:05:11 +0000 Subject: 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 --- lldb/test/python_api/formatters/TestFormattersSBAPI.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lldb/test/python_api/formatters/TestFormattersSBAPI.py') 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) -- cgit v1.2.3