mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:53:37 +03:00
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:
parent
dd0405c909
commit
8e9a8dd978
4 changed files with 82 additions and 2 deletions
43
tests/data/test1490
Normal file
43
tests/data/test1490
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue