curl/tests
Viktor Szakats 34ad78da89
curlx: move Curl_strerror, use in src and tests, ban strerror globally
Also:
- tests/server: replace local `sstrerror()` with `curlx_strerror()`.
- tests/server: show the error code next to the string, where missing.
- curlx: use `curl_msnprintf()` when building for src and tests.
  (units was already using it.)
- lib: drop unused includes found along the way.
- curlx_strerror(): avoid compiler warning (and another similar one):
  ```
  In file included from servers.c:14:
  ../../lib/../../lib/curlx/strerr.c: In function ‘curlx_strerror’:
  ../../lib/../../lib/curlx/strerr.c:328:32: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
    328 |       SNPRINTF(buf, buflen, "%s", msg);
        |                                ^
  ../../lib/../../lib/curlx/strerr.c:47:18: note: ‘snprintf’ output 1 or more bytes (assuming 2) into a destination of size 1
     47 | #define SNPRINTF snprintf
        |                  ^
  ../../lib/../../lib/curlx/strerr.c:328:7: note: in expansion of macro ‘SNPRINTF’
    328 |       SNPRINTF(buf, buflen, "%s", msg);
        |       ^~~~~~~~
  ```

Follow-up to 45438c8d6f #18823

Closes #18840
2025-10-06 09:44:23 +02:00
..
certs
cmake
data checksrc: fix to handle ) predecing a banned function 2025-10-03 22:45:13 +02:00
http ssl: support Apple SecTrust configurations 2025-10-03 12:02:23 +02:00
libtest curlx: move Curl_strerror, use in src and tests, ban strerror globally 2025-10-06 09:44:23 +02:00
server curlx: move Curl_strerror, use in src and tests, ban strerror globally 2025-10-06 09:44:23 +02:00
tunit tests: stop overriding system printf symbols 2025-10-04 00:51:06 +02:00
unit unit1323: sync time types and printf masks, drop casts 2025-10-06 03:27:57 +02:00
.gitignore
allversions.pm
appveyor.pm
azure.pm
CMakeLists.txt pytest: skip specific tests for no-verbose builds 2025-10-02 10:41:46 +02:00
config.in
configurehelp.pm.in
devtest.pl tidy-up: formatting 2025-08-23 01:12:27 +02:00
dictserver.py
directories.pm
ech_combos.py
ech_tests.sh tidy-up: formatting 2025-08-23 01:12:27 +02:00
ftpserver.pl
getpart.pm
globalconfig.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
http-server.pl
http2-server.pl
http3-server.pl
Makefile.am runtests: replace --ci with --buidinfo, show OS/Perl version again 2025-08-21 13:11:32 +02:00
memanalyze.pl
negtelnetserver.py
nghttpx.conf
pathhelp.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
processhelp.pm
requirements.txt GHA: bump pip cryptography, relax impacket version requirement 2025-09-25 14:22:40 +02:00
rtspserver.pl
runner.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
runtests.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
secureserver.pl
serverhelp.pm
servers.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
smbserver.py
sshhelp.pm
sshserver.pl
test745.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
test971.pl
test1119.pl
test1132.pl
test1135.pl
test1139.pl
test1140.pl
test1165.pl
test1167.pl
test1173.pl
test1175.pl
test1177.pl
test1222.pl
test1275.pl
test1276.pl
test1477.pl
test1486.pl
test1488.pl
test1544.pl
test1707.pl
testcurl.pl perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
testutil.pm perlcheck: add script, run in CI, fix fallouts 2025-09-26 14:47:33 +02:00
tftpserver.pl
util.py
valgrind.pm
valgrind.supp