aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1442
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-03-24 10:14:21 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-03-25 23:48:57 +0100
commit8e65877870c1fac920b65219adec720df810aab9 (patch)
treea7e865cf2d09539b75f7604ce84ba624968616a7 /tests/data/test1442
parentd14563454a5eaedafd1e8a2967ee3df46015edf4 (diff)
curl: check for end of input in writeout backslash handling
Reported-by: Brian Carpenter Added test 1442 to verify
Diffstat (limited to 'tests/data/test1442')
-rw-r--r--tests/data/test144235
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/data/test1442 b/tests/data/test1442
new file mode 100644
index 000000000..255a4c9ff
--- /dev/null
+++ b/tests/data/test1442
@@ -0,0 +1,35 @@
+<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>