From 62da1e7458ce98479ddbfd259f0b3675b6f0b84c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 3 Jan 2014 12:25:09 +0100 Subject: 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. --- tests/data/Makefile.am | 2 +- tests/data/test1513 | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1513 (limited to 'tests/data') 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 @@ + + + +PROGRESSGFUNCTION + + + +# Server-side + + + +# Client-side + + +none + + +lib1513 + + +return failure immediately from progress callback + + +# this server/host won't be used for real + +http://localhost/1513 + + + +# Verify data after the test has been "shot" + + + +# 42 == CURLE_ABORTED_BY_CALLBACK + +42 + + + -- cgit v1.2.3