aboutsummaryrefslogtreecommitdiffstats
path: root/tests/data/test1513
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/test1513')
-rw-r--r--tests/data/test151346
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/data/test1513 b/tests/data/test1513
new file mode 100644
index 00000000..8abb96fa
--- /dev/null
+++ b/tests/data/test1513
@@ -0,0 +1,46 @@
+<testcase>
+<info>
+<keywords>
+PROGRESSFUNCTION
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data nocheck="yes">
+HTTP/1.1 204 PARTIAL
+X-Comment: partial response to keep the client waiting
+</data>
+<postcmd>
+wait 10
+</postcmd>
+</reply>
+
+# Client-side
+<client>
+<server>
+http
+</server>
+<tool>
+lib1513
+</tool>
+ <name>
+return failure immediately from progress callback
+ </name>
+
+# this server/host won't be used for real
+ <command>
+http://%HOSTIP:%HTTPPORT/1513
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+</protocol>
+# 42 == CURLE_ABORTED_BY_CALLBACK
+<errorcode>
+42
+</errorcode>
+</verify>
+</testcase>