curl-curl/tests/data/test462
Daniel Stenberg 9e198618de
tool_parsecfg: detect and error on recursive --config use
The config file parser now has a maximum level of inclusions allowed (5)
to detect and prevent recursive inclusions of itself leading to badness.

Bonus: clean up return code handling from the config parser.

Test 774 verifies
Closes #19168
2025-10-21 10:11:43 +02:00

37 lines
453 B
Plaintext

<testcase>
<info>
<keywords>
variables
--config
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<name>
Missing environment variables in config file
</name>
<file name="%LOGDIR/cmd">
variable %MISSING
expand-data {{MISSING}}
</file>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -K %LOGDIR/cmd
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
2
</errorcode>
</verify>
</testcase>