Skip to content

Commit 5e64520

Browse files
committed
[lldb] Update Windows test to new Status API
1 parent ed03070 commit 5e64520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/unittests/Utility/StatusTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ TEST(StatusTest, ErrorWin32) {
8484
// formatted messages will be different.
8585
bool skip = wcscmp(L"en-US", name) != 0;
8686

87-
auto s = Status(ERROR_ACCESS_DENIED, ErrorType::eErrorTypeWin32);
87+
Status s = Status(ERROR_ACCESS_DENIED, ErrorType::eErrorTypeWin32);
8888
EXPECT_TRUE(s.Fail());
8989
if (!skip)
9090
EXPECT_STREQ("Access is denied. ", s.AsCString());
9191

92-
s.SetError(ERROR_IPSEC_IKE_TIMED_OUT, ErrorType::eErrorTypeWin32);
92+
s = Status(ERROR_IPSEC_IKE_TIMED_OUT, ErrorType::eErrorTypeWin32);
9393
if (!skip)
9494
EXPECT_STREQ("Negotiation timed out ", s.AsCString());
9595

96-
s.SetError(16000, ErrorType::eErrorTypeWin32);
96+
s = Status(16000, ErrorType::eErrorTypeWin32);
9797
if (!skip)
9898
EXPECT_STREQ("unknown error", s.AsCString());
9999
}

0 commit comments

Comments
 (0)