Author: Adrian Prantl Date: 2023-05-11T13:38:19-07:00 New Revision: 1585ee1077930d4a906b3265bb40a90ba4758c99
URL: https://github.com/llvm/llvm-project/commit/1585ee1077930d4a906b3265bb40a90ba4758c99 DIFF: https://github.com/llvm/llvm-project/commit/1585ee1077930d4a906b3265bb40a90ba4758c99.diff LOG: Relax test to not rely on the variable being optimized out Added: Modified: lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py Removed: ################################################################################ diff --git a/lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py b/lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py index c80f398b4cbb8..44a4bc65a53f7 100644 --- a/lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py +++ b/lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py @@ -14,6 +14,6 @@ def test_unused_inlined_parameters(self): lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.c")) # For the unused parameters, only check the types. - self.assertIn("(void *) unused1 = <no location, value may have been optimized out>", + self.assertIn("(void *) unused1", lldbutil.get_description(self.frame().FindVariable("unused1"))) self.assertEqual(42, self.frame().FindVariable("used").GetValueAsUnsigned()) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits