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.
This commit is contained in:
Daniel Stenberg
2014-01-03 12:25:09 +01:00
parent bf24b64e83
commit 62da1e7458
4 changed files with 111 additions and 2 deletions

39
tests/data/test1513 Normal file
View File

@@ -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>