curl/tests/libtest
Marc Hoersken 8b42d7b9d4
tool and tests: force flush of all buffers at end of program
On Windows data can be lost in buffers in case of abnormal program
termination, especially in process chains as seen due to flaky tests.
Therefore flushing all buffers manually should avoid this data loss.

In the curl tool we play the safe game by only flushing write buffers,
but in the testsuite where we manage all buffers, we flush everything.

This should drastically reduce Windows CI and testsuite flakiness.

Reviewed-by: Daniel Stenberg

Supersedes #7833 and #6064
Closes #8516
2022-03-13 13:29:28 +01:00
..
.checksrc checksrc: ban gmtime/localtime 2020-07-28 23:51:17 +02:00
.gitignore CURLOPT_PREREQFUNCTION: add new callback 2021-09-27 17:16:43 +02:00
chkdecimalpoint.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
chkhostname.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
CMakeLists.txt copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
first.c tool and tests: force flush of all buffers at end of program 2022-03-13 13:29:28 +01:00
lib500.c test500: adjust to work with hyper mode 2021-06-07 23:54:54 +02:00
lib501.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib502.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib503.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib504.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib505.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
lib506.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib507.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib508.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib509.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib510.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib511.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib512.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib513.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib514.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib515.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib516.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib517.c scripts/copyright: .muse is .lift now 2021-09-28 16:42:18 +02:00
lib518.c TPF: drop support 2022-02-04 08:05:35 +01:00
lib519.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib520.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib521.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib523.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib524.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib525.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
lib526.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib530.c libtest: avoid "assignment within conditional expression" 2022-01-03 17:05:36 +01:00
lib533.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib537.c TPF: drop support 2022-02-04 08:05:35 +01:00
lib539.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib540.c libtest: avoid "assignment within conditional expression" 2022-01-03 17:05:36 +01:00
lib541.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
lib542.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib543.c tests: reduce variable scopes 2021-02-10 16:47:09 +01:00
lib544.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib547.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib549.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib552.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib553.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib554.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib555.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib556.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib557.c checksrc: ignore preprocessor lines 2021-10-17 11:19:49 +02:00
lib558.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib559.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib560.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib562.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib564.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib566.c test566: adjust to work with hyper mode 2021-06-10 08:42:13 +02:00
lib567.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib568.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib569.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib570.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib571.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib572.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib573.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib574.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib575.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib576.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib578.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib579.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib582.c libtest: avoid "assignment within conditional expression" 2022-01-03 17:05:36 +01:00
lib583.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib586.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib589.c mime: make sure setting MIMEPOST to NULL resets properly 2021-01-15 08:33:27 +01:00
lib590.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib591.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib597.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib598.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib599.c test599: adjusted to work in hyper mode 2021-06-10 08:42:19 +02:00
lib643.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib650.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib651.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib652.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib653.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib654.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib655.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib658.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib659.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib661.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib666.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib667.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib668.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib670.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib674.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib676.c cookie: CURLOPT_COOKIEFILE set to NULL switches off cookies 2021-04-14 23:09:36 +02:00
lib677.c lib677: make it survive torture testing 2021-06-27 23:20:18 +02:00
lib678.c SSL: support in-memory CA certs for some backends 2021-05-05 02:29:16 -04:00
lib1156.c test1156: enable for hyper 2021-12-09 23:30:34 +01:00
lib1500.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1501.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1502.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1506.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1507.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1508.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1509.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1510.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1511.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1512.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1513.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1514.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1515.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1517.c lib: remove support for CURL_DOES_CONVERSIONS 2022-02-04 08:05:35 +01:00
lib1518.c test1518: adjusted to work with hyper 2021-07-01 14:25:57 +02:00
lib1520.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1522.c test1522: add debug tracing 2020-12-17 16:55:56 +01:00
lib1523.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1525.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1526.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1527.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1528.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1529.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1530.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1531.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1532.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1533.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1534.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1535.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1536.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
lib1537.c copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
lib1538.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib1540.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1541.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1542.c CURLOPT_MAXLIFETIME_CONN: maximum allowed lifetime for conn reuse 2021-10-06 14:38:59 +02:00
lib1550.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1551.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1552.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1553.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1554.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1555.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1556.c test1556: adjust for hyper 2021-12-07 17:11:51 +01:00
lib1557.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1558.c infof/failf calls: fix format specifiers 2020-11-24 13:18:41 +01:00
lib1559.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib1560.c urlapi: if possible, shorten given numerical IPv6 addresses 2022-01-02 22:59:08 +01:00
lib1564.c copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
lib1565.c checksrc: detect more kinds of NULL comparisons we avoid 2021-12-27 23:39:26 +01:00
lib1567.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1568.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1569.c ftp: add 'prefer_ascii' to the transfer state struct 2021-02-09 14:06:28 +01:00
lib1591.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1592.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1593.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1594.c test1594/1595/1596: fix to work in hyper mode 2021-06-10 08:42:44 +02:00
lib1900.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1905.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1906.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1907.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1908.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1910.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1911.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1912.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1913.c curl.se: new home 2020-11-04 23:59:47 +01:00
lib1915.c cleanup: constify unmodified static structs 2021-09-23 12:54:35 +02:00
lib1916.c mqtt: handle POST/PUBLISH without a set POSTFIELDSIZE 2020-12-18 12:54:05 +01:00
lib1918.c test1918: verify curl_easy_option_by_name() and curl_easy_option_by_id() 2021-01-15 17:03:29 +01:00
lib1933.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib1934.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib1935.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib1936.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib1937.c aws-sigv4: make signature work when post data is binary 2021-10-15 08:46:23 +02:00
lib1938.c aws-sigv4: make signature work when post data is binary 2021-10-15 08:46:23 +02:00
lib1939.c lib1939: make it endure torture tests 2021-11-13 22:44:34 +01:00
lib3010.c test3010: work with hyper mode 2021-06-10 08:42:50 +02:00
lib3025.c misc: update copyright year range 2021-12-30 14:17:47 +01:00
libauthretry.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
libntlmconnect.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
libprereq.c CURLOPT_PREREQFUNCTION: add new callback 2021-09-27 17:16:43 +02:00
Makefile.am configure: remove support for "embedded ares" 2022-02-07 23:27:57 +01:00
Makefile.inc tests: Add test for CURLOPT_HTTP200ALIASES 2021-12-21 08:45:06 +01:00
mk-lib1521.pl scripts/copyright: .muse is .lift now 2021-09-28 16:42:18 +02:00
notexists.pl curl.se: new home 2020-11-04 23:59:47 +01:00
sethostname.c curl.se: new home 2020-11-04 23:59:47 +01:00
sethostname.h curl.se: new home 2020-11-04 23:59:47 +01:00
stub_gssapi.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
stub_gssapi.h curl.se: new home 2020-11-04 23:59:47 +01:00
test307.pl curl.se: new home 2020-11-04 23:59:47 +01:00
test610.pl curl.se: new home 2020-11-04 23:59:47 +01:00
test613.pl curl.se: new home 2020-11-04 23:59:47 +01:00
test1013.pl metalink: remove 2021-06-07 08:14:25 +02:00
test1022.pl curl.se: new home 2020-11-04 23:59:47 +01:00
test.h TPF: drop support 2022-02-04 08:05:35 +01:00
testtrace.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
testtrace.h curl.se: new home 2020-11-04 23:59:47 +01:00
testutil.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
testutil.h curl.se: new home 2020-11-04 23:59:47 +01:00