mirror of
https://github.com/curl/curl.git
synced 2026-08-25 21:43: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
37
tests/data/test1491
Normal file
37
tests/data/test1491
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FILE
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
file
|
||||
</server>
|
||||
<name>
|
||||
file:// don't overwrite self with --skip-existing
|
||||
</name>
|
||||
<command option="no-output">
|
||||
file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt -o %LOGDIR/test%TESTNUMBER.txt --skip-existing
|
||||
</command>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.txt">
|
||||
foo
|
||||
bar
|
||||
bar
|
||||
foo
|
||||
moo
|
||||
</file>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<stderr mode="text">
|
||||
Note: skips transfer, "%LOGDIR/test%TESTNUMBER.txt" exists locally
|
||||
</stderr>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue