1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

test1440/1: depend on well-defined file: behaviour

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.
This commit is contained in:
Dan Fandrich 2017-03-12 23:23:31 +01:00
parent 3863de57f2
commit db900ab732
2 changed files with 10 additions and 2 deletions

View File

@ -2,6 +2,7 @@
<info>
<keywords>
--write-out
FILE
</keywords>
</info>
# Server-side
@ -18,12 +19,15 @@ file
Check --write-out with trailing %{
</name>
<command>
file://localhost/%PWD/log/ --write-out '%{'
file://localhost/%PWD/log/non-existent-file.txt --write-out '%{'
</command>
</client>
# Verify data
<verify>
<errorcode>
37
</errorcode>
<stdout nonewline="yes">
%{
</stdout>

View File

@ -2,6 +2,7 @@
<info>
<keywords>
--write-out
FILE
</keywords>
</info>
# Server-side
@ -18,12 +19,15 @@ file
Check --write-out with trailing %
</name>
<command>
file://localhost/%PWD/log/ --write-out '%'
file://localhost/%PWD/log/non-existent-file.txt --write-out '%'
</command>
</client>
# Verify data
<verify>
<errorcode>
37
</errorcode>
<stdout nonewline="yes">
%
</stdout>