Relax test to not rely on the variable being optimized out
authorAdrian Prantl <aprantl@apple.com>
Thu, 11 May 2023 20:37:30 +0000 (13:37 -0700)
committerAdrian Prantl <aprantl@apple.com>
Thu, 11 May 2023 20:38:19 +0000 (13:38 -0700)
lldb/test/API/functionalities/unused-inlined-parameters/TestUnusedInlinedParameters.py

index c80f398..44a4bc6 100644 (file)
@@ -14,6 +14,6 @@ class TestUnusedInlinedParameters(TestBase):
         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())