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
This commit is contained in:
Dan Fandrich 2024-09-25 13:30:29 -07:00
parent dd0405c909
commit 8e9a8dd978
4 changed files with 82 additions and 2 deletions

43
tests/data/test1490 Normal file
View file

@ -0,0 +1,43 @@
<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>