curl/tests/data/test205
Dan Fandrich 8e9a8dd978 tests: add file: tests with existing files
Windows sometimes has issues when opening the same file twice, so these
test two situations where that could potentially occur.

Reported-by: ralfjunker on github
Ref: #15043
Closes #15045
2024-09-26 10:10:36 -07:00

39 lines
530 B
Plaintext

<testcase>
<info>
<keywords>
FILE
FAILURE
</keywords>
</info>
# no Server-side
# Client-side
<client>
<server>
file
</server>
<name>
"upload" nonexisting with file://
</name>
<command option="no-include">
file://localhost/%PWD/%LOGDIR/nonexisting/result%TESTNUMBER.txt -T %LOGDIR/upload%TESTNUMBER.txt
</command>
<file name="%LOGDIR/upload%TESTNUMBER.txt">
data
in
file
to
write
</file>
</client>
# Verify data after the test has been "shot"
<verify>
# 23 => CURLE_WRITE_ERROR
<errorcode>
23
</errorcode>
</verify>
</testcase>