curl/tests/data/test1490
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

44 lines
614 B
Plaintext

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