aboutsummaryrefslogtreecommitdiff
path: root/tests/data
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
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')
-rw-r--r--tests/data/Makefile.am2
-rw-r--r--tests/data/test151339
2 files changed, 40 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index a004f7a84..acf7e763e 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -122,7 +122,7 @@ test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \
test1408 test1409 test1410 test1412 test1413 test1414 test1415 \
\
test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
-test1508 test1509 test1510 test1511 test1512 \
+test1508 test1509 test1510 test1511 test1512 test1513 \
\
test1900 test1901 test1902 test1903 \
\
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>