File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments