curl/tests/libtest
Brandon Casey 6beb0eeea1 Ensure progress.size_dl/progress.size_ul are always >= 0
Historically the default "unknown" value for progress.size_dl and
progress.size_ul has been zero, since these values are initialized
implicitly by the calloc that allocates the curl handle that these
variables are a part of.  Users of curl that install progress
callbacks may expect these values to always be >= 0.

Currently it is possible for progress.size_dl and progress.size_ul
to by set to a value of -1, if Curl_pgrsSetDownloadSize() or
Curl_pgrsSetUploadSize() are passed a "size" of -1 (which a few
places currently do, and a following patch will add more).  So
lets update Curl_pgrsSetDownloadSize() and Curl_pgrsSetUploadSize()
so they make sure that these variables always contain a value that
is >= 0.

Updates test579 and test599.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
2014-09-07 23:23:12 +02:00
..
.gitignore libtest: gitignore more binary files 2013-05-08 14:35:45 +02:00
chkhostname.c
CMakeLists.txt cmake: Fix for MSVC2010 project generation 2013-07-17 00:26:58 +02:00
first.c libtests: add a wait_ms() function 2014-05-09 16:50:42 +02:00
lib500.c test585: Fixed NULL pointer dereference in fopen 2014-05-01 11:00:30 +02:00
lib501.c
lib502.c
lib503.c
lib504.c
lib505.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib506.c test506: verify aa68848451 2014-07-16 00:09:58 +02:00
lib507.c
lib508.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib509.c
lib510.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib511.c
lib512.c
lib513.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib514.c
lib515.c
lib516.c
lib517.c
lib518.c
lib519.c
lib520.c
lib521.c
lib523.c
lib524.c
lib525.c
lib526.c
lib530.c Multiple pipelines and limiting the number of connections. 2013-03-13 23:55:24 +01:00
lib533.c
lib536.c
lib537.c
lib539.c
lib540.c
lib541.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib542.c
lib543.c
lib544.c
lib547.c
lib549.c
lib552.c
lib553.c
lib554.c
lib555.c
lib556.c
lib557.c mprintf: Replaced internal usage of FORMAT_OFF_T and FORMAT_OFF_TU 2013-12-31 11:10:42 +00:00
lib558.c tests: add #96 #558 and #1330 2013-03-15 19:59:51 +01:00
lib560.c
lib562.c
lib564.c libtest: fix data type of some *_setopt() 'long' arguments 2013-07-22 21:40:45 +02:00
lib566.c
lib567.c
lib568.c
lib569.c
lib570.c libtest: fix data type of some *_setopt() 'long' arguments 2013-07-22 21:40:45 +02:00
lib571.c libtest: fix data type of some *_setopt() 'long' arguments 2013-07-22 21:40:45 +02:00
lib572.c
lib573.c
lib574.c
lib575.c
lib576.c
lib578.c
lib579.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib582.c
lib583.c
lib586.c libtest: fix data type of some *_setopt() 'long' arguments 2013-07-22 21:40:45 +02:00
lib590.c
lib591.c
lib597.c
lib598.c
lib599.c Ensure progress.size_dl/progress.size_ul are always >= 0 2014-09-07 23:23:12 +02:00
lib1500.c tests: Use standard libtest return codes when relevant 2014-05-05 15:30:05 +02:00
lib1501.c
lib1502.c
lib1506.c lib1506: make sure the transfers are not within the same ms 2014-05-09 16:50:42 +02:00
lib1507.c tests: make a few lib15?? tests pass the OOM torture tests 2014-01-29 00:40:33 +01:00
lib1508.c
lib1509.c lib1509.c: fix compiler warnings 2013-04-04 16:31:27 +02:00
lib1510.c tests: make a few lib15?? tests pass the OOM torture tests 2014-01-29 00:40:33 +01:00
lib1511.c test 1511: fix enumerated type mixed with another type 2013-07-11 17:01:02 +02:00
lib1512.c lib1512.c: Fixed compilation warning 2013-09-02 20:39:53 +01:00
lib1513.c test1513: Don't return an uninitialized variable on init failure 2014-05-05 15:29:23 +02:00
lib1514.c test1514: Got rid of a non-const initializer C99ism 2014-01-22 01:49:55 +01:00
lib1515.c lib1515.c: Fixed #include path in commit 647f83e809 2014-02-19 20:36:36 +00:00
lib1525.c CURLOPT_HEADEROPT: added 2014-04-04 17:03:43 +02:00
lib1526.c tests: Fixed torture test for tests 1526 & 1527 2014-04-22 22:43:57 +02:00
lib1527.c tests: Fixed torture test for tests 1526 & 1527 2014-04-22 22:43:57 +02:00
lib1528.c PROXYHEADER: send these headers in "normal" proxy requests too 2014-04-04 17:03:43 +02:00
lib1900.c lib1900: make the test pass the OOM torture tests 2014-01-29 00:19:34 +01:00
libauthretry.c tests: make the authorization retry tests pass the torture tests 2014-01-30 23:18:20 +01:00
libntlmconnect.c libtest: fix data type of some *_setopt() 'long' arguments 2013-07-22 21:40:45 +02:00
Makefile.am
Makefile.inc libtest: fixed duplicated line in Makefile 2014-07-24 15:19:46 +02:00
notexists.pl
sethostname.c
sethostname.h
test75.pl
test307.pl
test610.pl
test613.pl
test1013.pl test1013.pl: GSS-Negotiate doesn't exist as a feature anymore 2014-07-24 23:46:11 +02:00
test1022.pl
test.h libtests: add a wait_ms() function 2014-05-09 16:50:42 +02:00
testtrace.c
testtrace.h
testutil.c
testutil.h