diff --git a/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py b/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py index 32fc266c0fde6..d1e972c7f0bcb 100644 --- a/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py +++ b/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py @@ -25,4 +25,5 @@ def test(self): error = lldb.SBError() target.Launch(launch_info, error) - self.assertFailure(error, "Process prematurely exited with 0xc0000135") + self.assertFalse(error.Success(), "expected launch to fail") + self.assertIn("Process prematurely exited with 0xc0000135", error.GetCString())