aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-19 10:14:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-19 10:14:45 +0000
commitdaadcfd1de6d6369e0f2c0c1bca528995196ffaf (patch)
treebdb61968387136890e6e3cad4b1af1d645b77be6 /tests/libtest
parent62df0ff025e247a5d1d2850e22a8cdfb9edcbfd7 (diff)
Dmitry Kurochkin fixed test case 530 (pipelining)
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib530.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libtest/lib530.c b/tests/libtest/lib530.c
index e339ab2cf..5d4a9b3ef 100644
--- a/tests/libtest/lib530.c
+++ b/tests/libtest/lib530.c
@@ -32,6 +32,7 @@ int test(char *URL)
struct timeval mp_start;
char ml_timedout = FALSE;
char mp_timedout = FALSE;
+ char target_url[80];
if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
fprintf(stderr, "curl_global_init() failed\n");
@@ -58,7 +59,9 @@ int test(char *URL)
curl_global_cleanup();
return TEST_ERR_MAJOR_BAD + i;
}
- curl_easy_setopt(curl[i], CURLOPT_URL, URL);
+ snprintf(target_url, sizeof(target_url), "%s%04i", URL, i + 1);
+ target_url[sizeof(target_url) - 1] = '\0';
+ curl_easy_setopt(curl[i], CURLOPT_URL, target_url);
/* go verbose */
curl_easy_setopt(curl[i], CURLOPT_VERBOSE, 1);