curl/tests/libtest
Daniel Gustafsson 90d9e9460e tests: Run global cleanup at end of tests
Make sure to run curl_global_cleanup() when shutting down the test
suite to release any resources allocated in the SSL setup. This is
clearly visible when running tests with PolarSSL where the thread
lock calloc() memory which isn't released when not running cleanup.
Below is an excerpt from the autobuild logs:

  ==12368== 96 bytes in 1 blocks are possibly lost in loss record 1 of 2
  ==12368== at 0x4837B65: calloc (vg_replace_malloc.c:752)
  ==12368== by 0x11A76E: curl_dbg_calloc (memdebug.c:205)
  ==12368== by 0x145CDF: Curl_polarsslthreadlock_thread_setup
                         (polarssl_threadlock.c:54)
  ==12368== by 0x145B37: Curl_polarssl_init (polarssl.c:865)
  ==12368== by 0x14129D: Curl_ssl_init (vtls.c:171)
  ==12368== by 0x118B4C: global_init (easy.c:158)
  ==12368== by 0x118BF5: curl_global_init (easy.c:221)
  ==12368== by 0x118D0B: curl_easy_init (easy.c:299)
  ==12368== by 0x114E96: test (lib1906.c:32)
  ==12368== by 0x115495: main (first.c:174)

Closes #3783
Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
2019-04-15 15:23:58 +02:00
..
.gitignore libtest: Add chkdecimalpoint to .gitignore 2018-09-15 23:39:50 +02:00
chkdecimalpoint.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
chkhostname.c
CMakeLists.txt CMake: suppress MSVC warning C4127 for libtest 2018-10-05 12:48:47 +02:00
first.c memdebug: make debug-specific functions use curl_dbg_ prefix 2019-03-08 23:21:21 +01:00
lib500.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib501.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib502.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib503.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib504.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib505.c
lib506.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib507.c
lib508.c
lib509.c lib509: add missing include for strdup 2019-04-11 21:08:39 +02:00
lib510.c
lib511.c
lib512.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib513.c
lib514.c
lib515.c
lib516.c
lib517.c parsedate: support UT timezone 2018-03-19 19:22:42 +01:00
lib518.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib519.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib520.c
lib521.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib523.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib524.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib525.c
lib526.c
lib530.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib533.c
lib537.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib539.c
lib540.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib541.c
lib542.c
lib543.c
lib544.c checksrc: make sure sizeof() is used *with* parentheses 2018-05-21 23:21:47 +02:00
lib547.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib549.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib552.c checksrc: make sure sizeof() is used *with* parentheses 2018-05-21 23:21:47 +02:00
lib553.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib554.c mime: keep "text/plain" content type if user-specified. 2017-10-12 19:36:16 +01:00
lib555.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib556.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib557.c lib557: initialize variables 2019-04-11 21:08:41 +02:00
lib558.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib559.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib560.c spelling fixes 2018-02-23 23:29:01 +00:00
lib562.c
lib564.c
lib566.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib567.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib568.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib569.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib570.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib571.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib572.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib573.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib574.c
lib575.c
lib576.c
lib578.c
lib579.c cppcheck: fix warnings 2018-06-11 11:14:48 +02:00
lib582.c lib582: do not verify host for SFTP 2017-12-01 17:40:14 +01:00
lib583.c
lib586.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib589.c
lib590.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib591.c build: remove HAVE_LIMITS_H check 2018-01-05 23:34:30 -05:00
lib597.c connection: never reuse CONNECT_ONLY conections 2019-02-19 22:50:02 +01:00
lib598.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib599.c
lib643.c test643: verify curl_mime_subparts() rejects cyclic additions. 2017-10-08 19:05:59 +01:00
lib650.c curl-compilers: enable -Wbad-function-cast on GCC 2018-08-21 18:53:45 +02:00
lib651.c test651: curl_formadd with huge COPYCONTENTS 2017-10-13 07:55:47 +02:00
lib652.c checksrc: make sure sizeof() is used *with* parentheses 2018-05-21 23:21:47 +02:00
lib653.c test653: check reuse of easy handle after mime data change 2017-10-20 14:01:14 +01:00
lib654.c mime: clone mime tree upon easy handle duplication. 2018-01-14 19:43:12 +01:00
lib655.c build: get CFLAGS (including -werror) used for examples and tests 2018-03-04 19:46:26 +01:00
lib658.c setopt: add CURLOPT_CURLU 2018-11-09 15:47:28 +01:00
lib659.c CURLU: fix NULL dereference when used over proxy 2019-03-04 16:24:08 +01:00
lib1156.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1500.c checksrc: code style: use 'char *name' style 2016-11-24 23:58:22 +01:00
lib1501.c
lib1502.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1506.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1507.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1508.c
lib1509.c tests: Fix format specifiers 2018-05-14 09:42:27 +02:00
lib1510.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1511.c
lib1512.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1513.c
lib1514.c
lib1515.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1517.c
lib1518.c Curl_follow: extract the Location: header field unvalidated 2018-12-12 07:58:47 +01:00
lib1520.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1522.c tests: Run global cleanup at end of tests 2019-04-15 15:23:58 +02:00
lib1525.c
lib1526.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1527.c
lib1528.c
lib1529.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1530.c
lib1531.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1532.c easy: Reset all statistical session info in curl_easy_reset 2016-09-20 01:14:01 -04:00
lib1533.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1534.c
lib1535.c tests: Fix format specifiers 2018-05-14 09:42:27 +02:00
lib1536.c tests: Fix format specifiers 2018-05-14 09:42:27 +02:00
lib1537.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib1538.c
lib1540.c test1540: Remove unused macro TEST_HANG_TIMEOUT 2018-08-09 12:37:21 +02:00
lib1541.c test1541: threaded connection sharing 2019-03-18 13:58:46 +01:00
lib1550.c
lib1551.c
lib1552.c multi_cleanup: call DONE on handles that never got that 2017-10-06 16:48:39 +02:00
lib1553.c pingpong: return error when trying to send without connection 2017-10-07 00:20:31 +02:00
lib1554.c cppcheck: fix warnings 2018-06-11 11:14:48 +02:00
lib1555.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib1556.c test1556: verify >16KB headers to the header callback 2018-02-16 22:54:50 +01:00
lib1557.c multi: fix crash due to dangling entry in connect-pending list 2018-06-23 22:31:52 +02:00
lib1558.c test1558: verify CURLINFO_PROTOCOL on file:// transfer 2019-01-10 11:22:48 +01:00
lib1560.c urlapi: stricter CURLUPART_PORT parsing 2019-04-13 11:17:30 +02:00
lib1591.c http: minor whitespace cleanup from f464535b 2018-12-14 10:20:06 +01:00
lib1592.c curl_multi_remove_handle() don't block terminating c-ares requests 2019-01-07 10:05:20 +01:00
lib1900.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib1905.c tests: Run global cleanup at end of tests 2019-04-15 15:23:58 +02:00
lib1906.c tests: Run global cleanup at end of tests 2019-04-15 15:23:58 +02:00
libauthretry.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
libntlmconnect.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
Makefile.am makefile: make checksrc and hugefile commands "silent" 2019-03-14 20:11:24 +01:00
Makefile.inc test1906: verify CURLOPT_CURLU + CURLOPT_PORT usage 2019-04-11 22:45:13 +02:00
mk-lib1521.pl http: Implement trailing headers for chunked transfers 2018-12-14 10:10:48 +01:00
notexists.pl
sethostname.c
sethostname.h whitespace fixes 2018-09-23 22:24:02 +00:00
stub_gssapi.c gssapi: fix deprecated header warnings 2019-02-14 08:38:43 +01:00
stub_gssapi.h whitespace fixes 2018-09-23 22:24:02 +00:00
test75.pl
test307.pl replaced tabs with spaces 2010-02-16 13:32:45 +00:00
test610.pl
test613.pl
test1013.pl
test1022.pl
test.h
testtrace.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
testtrace.h whitespace fixes 2018-09-23 22:24:02 +00:00
testutil.c
testutil.h whitespace fixes 2018-09-23 22:24:02 +00:00