summaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-15 13:04:20 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-15 17:03:29 +0100
commit30e7641d7d2eb46c0b67c0c495a0ea7e52333ee2 (patch)
tree0dedac3ae93cf822c01011d5b434f1027a747d7e /tests/data
parentcbf04469733926422a1dfb13b5b90a7962434b5c (diff)
downloadcurl-30e7641d7d2eb46c0b67c0c495a0ea7e52333ee2.tar.gz
test1918: verify curl_easy_option_by_name() and curl_easy_option_by_id()
... and as a practical side-effect, make sure that the Curl_easyopts_check() function is asserted in debug builds, which we want to detect mismatches between the options list in easyoptions.c and the options in curl.h Found-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/08e8455dddc5e48e58a12ade3815c01ae3da3b64#commitcomment-45991815 Closes #6461
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/Makefile.inc4
-rw-r--r--tests/data/test191833
2 files changed, 36 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index a6da863fa..c2bc009a5 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -207,7 +207,9 @@ test1800 test1801 \
\
test1904 test1905 test1906 test1907 \
test1908 test1909 test1910 test1911 test1912 test1913 test1914 test1915 \
-test1916 test1917 test1933 \
+test1916 test1917 test1918 \
+\
+test1933 \
\
test2000 test2001 test2002 test2003 test2004 test2005 test2006 test2007 \
test2008 test2009 test2010 test2011 test2012 test2013 test2014 test2015 \
diff --git a/tests/data/test1918 b/tests/data/test1918
new file mode 100644
index 000000000..32fc39336
--- /dev/null
+++ b/tests/data/test1918
@@ -0,0 +1,33 @@
+<testcase>
+<info>
+<keywords>
+curl_easy_option
+curl_easy_option_by_name
+curl_easy_option_by_id
+</keywords>
+</info>
+
+# Server-side
+<reply>
+</reply>
+
+# Client-side
+<client>
+<server>
+none
+</server>
+<name>
+curl_easy_option_by_name() and curl_easy_option_by_id()
+</name>
+<tool>
+lib1918
+</tool>
+
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<stdout>
+</stdout>
+</verify>
+</testcase>