summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-07-01 11:21:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-07-01 14:25:57 +0200
commita80f8ea18267f4366e8bcc72d7b9ff8db0219887 (patch)
treec197940eecc87a53b3235badfbacb2e51e033016 /tests
parent7f11282d5f58c1349e758b179ec3df70ad3db4eb (diff)
downloadcurl-a80f8ea18267f4366e8bcc72d7b9ff8db0219887.tar.gz
test1518: adjusted to work with hyper
... by making sure the stdout output doesn't look like HTTP headers. Closes #7333
Diffstat (limited to 'tests')
-rw-r--r--tests/data/DISABLED1
-rw-r--r--tests/data/test151810
-rw-r--r--tests/libtest/lib1518.c12
3 files changed, 11 insertions, 12 deletions
diff --git a/tests/data/DISABLED b/tests/data/DISABLED
index 27b2dcabb..1bada9af2 100644
--- a/tests/data/DISABLED
+++ b/tests/data/DISABLED
@@ -120,7 +120,6 @@
1432
1455
1456
-1518
1519
1525
1526
diff --git a/tests/data/test1518 b/tests/data/test1518
index e1d0d5cec..9b3f6be60 100644
--- a/tests/data/test1518
+++ b/tests/data/test1518
@@ -49,11 +49,11 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
<protocol>
</protocol>
<stdout>
-res: 0
-status: 302
-redirects: 0
-effectiveurl: http://%HOSTIP:%HTTPPORT/%TESTNUMBER
-redirecturl: http://1.2 .4.5/test
+res 0
+status 302
+redirects 0
+effectiveurl http://%HOSTIP:%HTTPPORT/%TESTNUMBER
+redirecturl http://1.2 .4.5/test
</stdout>
<errorcode>
0
diff --git a/tests/libtest/lib1518.c b/tests/libtest/lib1518.c
index 1f2fe3de0..8c4687885 100644
--- a/tests/libtest/lib1518.c
+++ b/tests/libtest/lib1518.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -53,11 +53,11 @@ int test(char *URL)
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effectiveUrl);
curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &redirectUrl);
- printf("res: %d\n"
- "status: %d\n"
- "redirects: %d\n"
- "effectiveurl: %s\n"
- "redirecturl: %s\n",
+ printf("res %d\n"
+ "status %d\n"
+ "redirects %d\n"
+ "effectiveurl %s\n"
+ "redirecturl %s\n",
(int)res,
(int)curlResponseCode,
(int)curlRedirectCount,