Author: Adrian Prantl Date: 2024-08-27T12:28:25-07:00 New Revision: 5e64520dae5dd980bc6db25414edc3a167d8af8f
URL: https://github.com/llvm/llvm-project/commit/5e64520dae5dd980bc6db25414edc3a167d8af8f DIFF: https://github.com/llvm/llvm-project/commit/5e64520dae5dd980bc6db25414edc3a167d8af8f.diff LOG: [lldb] Update Windows test to new Status API Added: Modified: lldb/unittests/Utility/StatusTest.cpp Removed: ################################################################################ diff --git a/lldb/unittests/Utility/StatusTest.cpp b/lldb/unittests/Utility/StatusTest.cpp index a7dba702bd0193..d33909ea897275 100644 --- a/lldb/unittests/Utility/StatusTest.cpp +++ b/lldb/unittests/Utility/StatusTest.cpp @@ -84,16 +84,16 @@ TEST(StatusTest, ErrorWin32) { // formatted messages will be diff erent. bool skip = wcscmp(L"en-US", name) != 0; - auto s = Status(ERROR_ACCESS_DENIED, ErrorType::eErrorTypeWin32); + Status s = Status(ERROR_ACCESS_DENIED, ErrorType::eErrorTypeWin32); EXPECT_TRUE(s.Fail()); if (!skip) EXPECT_STREQ("Access is denied. ", s.AsCString()); - s.SetError(ERROR_IPSEC_IKE_TIMED_OUT, ErrorType::eErrorTypeWin32); + s = Status(ERROR_IPSEC_IKE_TIMED_OUT, ErrorType::eErrorTypeWin32); if (!skip) EXPECT_STREQ("Negotiation timed out ", s.AsCString()); - s.SetError(16000, ErrorType::eErrorTypeWin32); + s = Status(16000, ErrorType::eErrorTypeWin32); if (!skip) EXPECT_STREQ("unknown error", s.AsCString()); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits