summaryrefslogtreecommitdiff
path: root/tests/data/test1403
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-11 13:55:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-11 17:28:35 +0100
commit3a63c190bb8e8752905dfcfe988d940b88fa9c73 (patch)
tree67c67b3d917e0c43d2fc5834a456a2e4375fdd74 /tests/data/test1403
parent3e927991711b134feb000e772b97a995e09e5827 (diff)
downloadcurl-3a63c190bb8e8752905dfcfe988d940b88fa9c73.tar.gz
tests: make --libcurl tests only test FTP options if ftp enabled
Adjust six --libcurl tests to only check the FTP option if FTP is actually present in the build. Fixes #6303 Closes #6305
Diffstat (limited to 'tests/data/test1403')
-rw-r--r--tests/data/test14032
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/data/test1403 b/tests/data/test1403
index a7c9fcca3..8f1eec403 100644
--- a/tests/data/test1403
+++ b/tests/data/test1403
@@ -73,7 +73,9 @@ int main(int argc, char *argv[])
curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
+%if ftp
curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L);
+%endif
curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
/* Here is a list of options the curl code used that cannot get generated