mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
0f0edc283c
Like when trying to import an environment variable that does not exist. Also fix a bug for reading env variables when there is a default value set. Bug: https://curl.se/mail/archive-2024-02/0008.html Reported-by: Brett Buddin Add test 462 to verify. Closes #12862
40 lines
478 B
Plaintext
40 lines
478 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
variables
|
|
--config
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<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>
|
|
26
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|