mirror of
https://github.com/moparisthebest/curl
synced 2024-12-25 01:28:51 -05:00
db900ab732
Depend on the known behaviour of URLs for nonexistent files rather than the undefined behaviour of URLs for directories (which fails on Windows). The test isn't about file: URLs at all, so the URL used doesn't really matter.
36 lines
401 B
Plaintext
36 lines
401 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
--write-out
|
|
FILE
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
file
|
|
</server>
|
|
|
|
<name>
|
|
Check --write-out with trailing %
|
|
</name>
|
|
<command>
|
|
file://localhost/%PWD/log/non-existent-file.txt --write-out '%'
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data
|
|
<verify>
|
|
<errorcode>
|
|
37
|
|
</errorcode>
|
|
<stdout nonewline="yes">
|
|
%
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|