test 1515: add MSYS support by passing a relative path

MSYS would otherwise turn a /-style path into a C:\-style path.
This commit is contained in:
Marc Hoersken
2015-12-26 17:25:42 +01:00
parent 4ca246c3a8
commit 38b055446a
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ lib1515
caching of manual libcurl DNS entries after DNS cache timeout caching of manual libcurl DNS entries after DNS cache timeout
</name> </name>
<command> <command>
/path/1515 %HOSTIP %HTTPPORT path/1515 %HOSTIP %HTTPPORT
</command> </command>
</client> </client>

View File

@@ -130,7 +130,7 @@ int test(char *URL)
for(i = 1; i <= count; i++) { for(i = 1; i <= count; i++) {
char target_url[256]; char target_url[256];
snprintf(target_url, sizeof(target_url), "http://testserver.example.com:%s%s%04d", port, path, i); snprintf(target_url, sizeof(target_url), "http://testserver.example.com:%s/%s%04d", port, path, i);
/* second request must succeed like the first one */ /* second request must succeed like the first one */
if((res = do_one_request(multi, target_url, dns_entry))) if((res = do_one_request(multi, target_url, dns_entry)))