]> granicus.if.org Git - curl/commitdiff
test 1515: add MSYS support by passing a relative path
authorMarc Hoersken <info@marc-hoersken.de>
Sat, 26 Dec 2015 16:25:42 +0000 (17:25 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sat, 26 Dec 2015 16:25:42 +0000 (17:25 +0100)
MSYS would otherwise turn a /-style path into a C:\-style path.

tests/data/test1515
tests/libtest/lib1515.c

index 3a49d1be9c4256e48142164d4086c70850bb2fd2..88168c37b49964f57dc20ceeb40826dc9ce8236e 100644 (file)
@@ -45,7 +45,7 @@ lib1515
 caching of manual libcurl DNS entries after DNS cache timeout
 </name>
 <command>
-/path/1515 %HOSTIP %HTTPPORT
+path/1515 %HOSTIP %HTTPPORT
 </command>
 </client>
 
index d5c8f7d088de2df66cdd6bd871015fe2b231d895..11c57aa2ffb8e16a45758006bd89e5c3d246de61 100644 (file)
@@ -130,7 +130,7 @@ int test(char *URL)
 
   for(i = 1; i <= count; i++) {
     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 */
     if((res = do_one_request(multi, target_url, dns_entry)))