diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py b/lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py index 49d7442f6763..30124f8335d7 100644 --- a/lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py +++ b/lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py @@ -18,7 +18,12 @@ class TestBreakpointOnOverload(TestBase): self.assertEqual(bkpt.num_locations, 1, "Got one location") addr = bkpt.locations[0].GetAddress() self.assertTrue(addr.function.IsValid(), "Got a real function") - self.assertEqual(addr.function.name, name, "Got the right name") + # On Window, the name of the function includes the return value. + # We still succeed in setting the breakpoint, but the resultant + # name is not the same. + # So just look for the name we used for the breakpoint in the + # function name, rather than doing an equality check. + self.assertIn(name, addr.function.name, "Got the right name") def test_break_on_overload(self): self.build()