mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WINHTTP_WINETEST] Skip several tests from execution in order to prevent
testbot hangs. ROSTESTS-350
This commit is contained in:
parent
17f932d78e
commit
0685e02d9e
1 changed files with 21 additions and 0 deletions
|
@ -3228,9 +3228,12 @@ static void test_multiple_reads(int port)
|
||||||
ret = WinHttpSendRequest(req, NULL, 0, NULL, 0, 0, 0);
|
ret = WinHttpSendRequest(req, NULL, 0, NULL, 0, 0, 0);
|
||||||
ok(ret, "failed to send request %u\n", GetLastError());
|
ok(ret, "failed to send request %u\n", GetLastError());
|
||||||
|
|
||||||
|
trace("waiting for response\n");
|
||||||
ret = WinHttpReceiveResponse(req, NULL);
|
ret = WinHttpReceiveResponse(req, NULL);
|
||||||
ok(ret == TRUE, "expected success\n");
|
ok(ret == TRUE, "expected success\n");
|
||||||
|
|
||||||
|
trace("finished waiting for response\n");
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
DWORD len = 0xdeadbeef;
|
DWORD len = 0xdeadbeef;
|
||||||
|
@ -3249,6 +3252,7 @@ static void test_multiple_reads(int port)
|
||||||
HeapFree( GetProcessHeap(), 0, buf );
|
HeapFree( GetProcessHeap(), 0, buf );
|
||||||
if (!bytes_read) break;
|
if (!bytes_read) break;
|
||||||
total_len += bytes_read;
|
total_len += bytes_read;
|
||||||
|
trace("read bytes %u, total_len: %u\n", bytes_read, total_len);
|
||||||
}
|
}
|
||||||
if (!len) break;
|
if (!len) break;
|
||||||
}
|
}
|
||||||
|
@ -4880,6 +4884,22 @@ START_TEST (winhttp)
|
||||||
test_multi_authentication(si.port);
|
test_multi_authentication(si.port);
|
||||||
test_large_data_authentication(si.port);
|
test_large_data_authentication(si.port);
|
||||||
test_bad_header(si.port);
|
test_bad_header(si.port);
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (!winetest_interactive)
|
||||||
|
{
|
||||||
|
skip("Skipping tests due to hang. See ROSTESTS-350\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
test_multiple_reads(si.port);
|
||||||
|
test_cookies(si.port);
|
||||||
|
test_request_path_escapes(si.port);
|
||||||
|
test_passport_auth(si.port);
|
||||||
|
|
||||||
|
/* send the basic request again to shutdown the server thread */
|
||||||
|
test_basic_request(si.port, NULL, quitW);
|
||||||
|
}
|
||||||
|
#else
|
||||||
test_multiple_reads(si.port);
|
test_multiple_reads(si.port);
|
||||||
test_cookies(si.port);
|
test_cookies(si.port);
|
||||||
test_request_path_escapes(si.port);
|
test_request_path_escapes(si.port);
|
||||||
|
@ -4887,6 +4907,7 @@ START_TEST (winhttp)
|
||||||
|
|
||||||
/* send the basic request again to shutdown the server thread */
|
/* send the basic request again to shutdown the server thread */
|
||||||
test_basic_request(si.port, NULL, quitW);
|
test_basic_request(si.port, NULL, quitW);
|
||||||
|
#endif
|
||||||
|
|
||||||
WaitForSingleObject(thread, 3000);
|
WaitForSingleObject(thread, 3000);
|
||||||
CloseHandle(thread);
|
CloseHandle(thread);
|
||||||
|
|
Loading…
Reference in a new issue