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) {
84
84
// formatted messages will be different.
85
85
bool skip = wcscmp (L" en-US" , name) != 0 ;
86
86
87
- auto s = Status (ERROR_ACCESS_DENIED, ErrorType::eErrorTypeWin32);
87
+ Status s = Status (ERROR_ACCESS_DENIED, ErrorType::eErrorTypeWin32);
88
88
EXPECT_TRUE (s.Fail ());
89
89
if (!skip)
90
90
EXPECT_STREQ (" Access is denied. " , s.AsCString ());
91
91
92
- s. SetError (ERROR_IPSEC_IKE_TIMED_OUT, ErrorType::eErrorTypeWin32);
92
+ s = Status (ERROR_IPSEC_IKE_TIMED_OUT, ErrorType::eErrorTypeWin32);
93
93
if (!skip)
94
94
EXPECT_STREQ (" Negotiation timed out " , s.AsCString ());
95
95
96
- s. SetError (16000 , ErrorType::eErrorTypeWin32);
96
+ s = Status (16000 , ErrorType::eErrorTypeWin32);
97
97
if (!skip)
98
98
EXPECT_STREQ (" unknown error" , s.AsCString ());
99
99
}
You can’t perform that action at this time.
0 commit comments