mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:53:32 +03:00
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:
parent
bf24b64e83
commit
62da1e7458
4 changed files with 111 additions and 2 deletions
|
|
@ -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 \
|
||||
\
|
||||
|
|
|
|||
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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue