curl/tests/data/test1521
Daniel Stenberg 3b057d4b7a
test1521: verify setting options to NULL better
Previously this test allowed several error values when setting options.
This made this test miss #14629.

Now, errors are generally not accepted for setopts:

 - numerical setopts accept CURLE_BAD_FUNCTION_ARGUMENT for funny input
 - the first setopt to an option accepts CURLE_NOT_BUILT_IN or
   CURLE_UNKNOWN_OPTION for when they are disabled/not built-in
 - there is an allowlist concept for some return code for some variables,
   managed at the top of the mk-lib1521.pl script

In curl.h: remove the OBSOLETE named values from the setopt list.

Closes #14634
2024-08-23 08:24:34 +02:00

34 lines
357 B
Plaintext

<testcase>
<info>
<keywords>
curl_easy_setopt
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<tool>
lib%TESTNUMBER
</tool>
<name>
Test all curl_easy_setopt and curl_easy_getinfo options
</name>
<command>
unused
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<stdout>
ok
</stdout>
</verify>
</testcase>