]> granicus.if.org Git - curl/commitdiff
test1440/1: depend on well-defined file: behaviour
authorDan Fandrich <dan@coneharvesters.com>
Sun, 12 Mar 2017 22:23:31 +0000 (23:23 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Sun, 12 Mar 2017 22:27:00 +0000 (23:27 +0100)
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.

tests/data/test1440
tests/data/test1441

index 7ed0c4d5f6251437aed187df8738afe9be62ae70..e87cafb0816c18ad9eab4321883c7cd92d3aa968 100644 (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>
index 6e253a690c1602df73bd3099a39cbbf966ff2d54..8d841df5d45b82853495feae34c47f18a4a1b316 100644 (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>