test419: verify --dump-header to file that cannot be created

Closes #10571
This commit is contained in:
Daniel Stenberg 2023-02-20 23:19:06 +01:00
parent 1c9cfb7af3
commit d79c3af259
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 36 additions and 1 deletions

35
tests/data/test419 Normal file
View file

@ -0,0 +1,35 @@
<testcase>
<info>
<keywords>
--dump-header
failure
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
http
</server>
<name>
--dump-header to file that cannot be created
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D loggg/save-here/fails
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
23
</errorcode>
</verify>
</testcase>