summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/class_static/TestStaticVariables.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/lang/cpp/class_static/TestStaticVariables.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/lang/cpp/class_static/TestStaticVariables.py')
-rw-r--r--lldb/test/lang/cpp/class_static/TestStaticVariables.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
index e995bf636c3..bf4f6a1d7b9 100644
--- a/lldb/test/lang/cpp/class_static/TestStaticVariables.py
+++ b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
@@ -6,6 +6,7 @@ import os, time
import unittest2
import lldb
from lldbtest import *
+import lldbutil
class StaticVariableTestCase(TestBase):
@@ -53,10 +54,7 @@ class StaticVariableTestCase(TestBase):
"""Test that that file and class static variables display correctly."""
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)
OpenPOWER on IntegriCloud