mirror of
https://github.com/curl/curl.git
synced 2026-06-10 05:54:15 +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>
|
||||
lib%TESTNUMBER
|
||||
</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>
|
||||
HTTP POST, server responds before completed send
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
||||
</command>
|
||||
<features>
|
||||
# Windows TCP does not deliver response data but reports CONNABORTED
|
||||
!cygwin
|
||||
!win32
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -61,17 +61,6 @@ static CURLcode test_lib1517(const char *URL)
|
|||
|
||||
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.sizeleft = strlen(testdata);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue