Skip to content

Commit 1585ee1

Browse files
committed
Relax test to not rely on the variable being optimized out
1 parent efbd587 commit 1585ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def test_unused_inlined_parameters(self):
1414
lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.c"))
1515

1616
# For the unused parameters, only check the types.
17-
self.assertIn("(void *) unused1 = <no location, value may have been optimized out>",
17+
self.assertIn("(void *) unused1",
1818
lldbutil.get_description(self.frame().FindVariable("unused1")))
1919
self.assertEqual(42, self.frame().FindVariable("used").GetValueAsUnsigned())

0 commit comments

Comments
 (0)