mirror of https://github.com/moparisthebest/curl
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:
parent
3863de57f2
commit
db900ab732
|
@ -2,6 +2,7 @@
|
||||||
<info>
|
<info>
|
||||||
<keywords>
|
<keywords>
|
||||||
--write-out
|
--write-out
|
||||||
|
FILE
|
||||||
</keywords>
|
</keywords>
|
||||||
</info>
|
</info>
|
||||||
# Server-side
|
# Server-side
|
||||||
|
@ -18,12 +19,15 @@ file
|
||||||
Check --write-out with trailing %{
|
Check --write-out with trailing %{
|
||||||
</name>
|
</name>
|
||||||
<command>
|
<command>
|
||||||
file://localhost/%PWD/log/ --write-out '%{'
|
file://localhost/%PWD/log/non-existent-file.txt --write-out '%{'
|
||||||
</command>
|
</command>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
# Verify data
|
# Verify data
|
||||||
<verify>
|
<verify>
|
||||||
|
<errorcode>
|
||||||
|
37
|
||||||
|
</errorcode>
|
||||||
<stdout nonewline="yes">
|
<stdout nonewline="yes">
|
||||||
%{
|
%{
|
||||||
</stdout>
|
</stdout>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<info>
|
<info>
|
||||||
<keywords>
|
<keywords>
|
||||||
--write-out
|
--write-out
|
||||||
|
FILE
|
||||||
</keywords>
|
</keywords>
|
||||||
</info>
|
</info>
|
||||||
# Server-side
|
# Server-side
|
||||||
|
@ -18,12 +19,15 @@ file
|
||||||
Check --write-out with trailing %
|
Check --write-out with trailing %
|
||||||
</name>
|
</name>
|
||||||
<command>
|
<command>
|
||||||
file://localhost/%PWD/log/ --write-out '%'
|
file://localhost/%PWD/log/non-existent-file.txt --write-out '%'
|
||||||
</command>
|
</command>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
# Verify data
|
# Verify data
|
||||||
<verify>
|
<verify>
|
||||||
|
<errorcode>
|
||||||
|
37
|
||||||
|
</errorcode>
|
||||||
<stdout nonewline="yes">
|
<stdout nonewline="yes">
|
||||||
%
|
%
|
||||||
</stdout>
|
</stdout>
|
||||||
|
|
Loading…
Reference in New Issue