Skip to content

Commit 1311e2e

Browse files
committed
fixup! [lldb][testsuite] Refactor use of check_expression
1 parent f685a80 commit 1311e2e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

lldb/test/API/lang/swift/expression/exclusivity_suppression/TestExclusivitySuppression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_basic_exclusivity_suppression(self):
4646
frame = thread.frames[0]
4747
self.assertTrue(frame, "Frame 0 is valid.")
4848

49-
self.check_expression(frame, "w.s.i", "8", use_summary=False)
49+
lldbutil.check_expression(self, frame, "w.s.i", "8", use_summary=False)
5050

5151
# Test that we properly handle nested expression evaluations by:
5252
# (1) Breaking at breakpoint 1

lldb/test/API/lang/swift/expression/generic/TestSwiftGenericExpressions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def do_test(self):
7272
process, breakpoints[i])
7373

7474
self.assertTrue(len(threads) == 1)
75-
lldbutil.check_expression(self.frame(), "i", str(i), use_summary=False)
75+
lldbutil.check_expression(self, self.frame(), "i", str(i), use_summary=False)
7676

7777
self.runCmd("continue")
7878

@@ -108,8 +108,8 @@ def do_ivar_test(self):
108108
process, breakpoints[i])
109109

110110
self.assertTrue(len(threads) == 1)
111-
lldbutil.check_expression(self.frame(), "m_t", str(class_bkpts[i]), use_summary=False)
112-
lldbutil.check_expression(self.frame(), "m_s.m_s", str(class_bkpts[i]), use_summary=False)
111+
lldbutil.check_expression(self, self.frame(), "m_t", str(class_bkpts[i]), use_summary=False)
112+
lldbutil.check_expression(self, self.frame(), "m_s.m_s", str(class_bkpts[i]), use_summary=False)
113113

114114
self.runCmd("continue")
115115

lldb/test/API/lang/swift/expression/static/TestSwiftExpressionsInClassFunctions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def test_expressions_in_class_functions(self):
5252
process, breakpoints[i])
5353

5454
self.assertTrue(len(threads) == 1)
55-
lldbutil.check_expression("i", str(i), False)
56-
self.check_expression(self, self.frame(), "i", str(i), use_summary=False)
55+
lldbutil.check_expression(self, self.frame(), "i", str(i), False)
5756
if i == 6:
5857
lldbutil.check_expression(self, self.frame(), "self", "a.H<Int>", use_summary=False)
5958
frame = threads[0].GetFrameAtIndex(0)

0 commit comments

Comments
 (0)