mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:13:31 +03:00
test1517: replace custom check with feature check
This commit is contained in:
parent
833c0e73d4
commit
8cf548b8ed
2 changed files with 5 additions and 17 deletions
|
|
@ -43,18 +43,17 @@ http
|
||||||
<tool>
|
<tool>
|
||||||
lib%TESTNUMBER
|
lib%TESTNUMBER
|
||||||
</tool>
|
</tool>
|
||||||
# precheck is a command line to run before the test, to see if we can execute
|
|
||||||
# the test or not
|
|
||||||
<precheck>
|
|
||||||
%LIBTESTS lib%TESTNUMBER check
|
|
||||||
</precheck>
|
|
||||||
|
|
||||||
<name>
|
<name>
|
||||||
HTTP POST, server responds before completed send
|
HTTP POST, server responds before completed send
|
||||||
</name>
|
</name>
|
||||||
<command>
|
<command>
|
||||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
||||||
</command>
|
</command>
|
||||||
|
<features>
|
||||||
|
# Windows TCP does not deliver response data but reports CONNABORTED
|
||||||
|
!cygwin
|
||||||
|
!win32
|
||||||
|
</features>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -61,17 +61,6 @@ static CURLcode test_lib1517(const char *URL)
|
||||||
|
|
||||||
struct t1517_WriteThis pooh;
|
struct t1517_WriteThis pooh;
|
||||||
|
|
||||||
if(!strcmp(URL, "check")) {
|
|
||||||
#if (defined(_WIN32) || defined(__CYGWIN__))
|
|
||||||
curl_mprintf("Windows TCP does not deliver response data but reports "
|
|
||||||
"CONNABORTED\n");
|
|
||||||
return TEST_ERR_FAILURE; /* skip since it fails on Windows without
|
|
||||||
workaround */
|
|
||||||
#else
|
|
||||||
return CURLE_OK; /* sure, run this! */
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
pooh.readptr = testdata;
|
pooh.readptr = testdata;
|
||||||
pooh.sizeleft = strlen(testdata);
|
pooh.sizeleft = strlen(testdata);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue