aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1513
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-03 12:25:09 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-03 14:09:59 +0100
commit62da1e7458ce98479ddbfd259f0b3675b6f0b84c (patch)
tree7451815c3b3a3b2411444d70f546afb819cb608d /tests/data/test1513
parentbf24b64e835d8f8c9e5da8136fec9b4f251837b8 (diff)
test1513: added - verify early progress callback return fail
Verify the change brought in commit 8e11731653061. It makes sure that returning a failure from the progress callback even very early results in the correct return code.
Diffstat (limited to 'tests/data/test1513')
-rw-r--r--tests/data/test151339
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/data/test1513 b/tests/data/test1513
new file mode 100644
index 000000000..9d0e117bd
--- /dev/null
+++ b/tests/data/test1513
@@ -0,0 +1,39 @@
+<testcase>
+<info>
+<keywords>
+PROGRESSGFUNCTION
+</keywords>
+</info>
+
+# Server-side
+<reply>
+</reply>
+
+# Client-side
+<client>
+<server>
+none
+</server>
+<tool>
+lib1513
+</tool>
+ <name>
+return failure immediately from progress callback
+ </name>
+
+# this server/host won't be used for real
+ <command>
+http://localhost/1513
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+</protocol>
+# 42 == CURLE_ABORTED_BY_CALLBACK
+<errorcode>
+42
+</errorcode>
+</verify>
+</testcase>