Re: wininet: tests/http.c: Improve HttpOpenRequest test
9 Jul
2008
9 Jul
'08
8:46 a.m.
Zac Brown <zac(a)zacbrown.org> writes:
+ SetLastError(0xdeadbeef); ret = HttpSendRequest(request, NULL, 0, NULL, 0); ok(ret, "HttpSendRequest failed: %u\n", GetLastError()); + ok(GetLastError() == ERROR_FILE_NOT_FOUND || + GetLastError() == ERROR_SUCCESS, + "HttpSendRequest failed, got %u.\n", GetLastError()); ok(InternetCloseHandle(request), "Close request handle failed\n");
Testing last error on success is not useful, unless it's explicitly specified that last error is set, or there is an app that depends on it. -- Alexandre Julliard julliard(a)winehq.org
6456
Age (days ago)
6456
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard