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:
39
tests/data/test1513
Normal file
39
tests/data/test1513
Normal 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>
|
||||
Reference in New Issue
Block a user