curl/tests/server
Viktor Szakats d9ea8cdcfa
tests/servers: do not interpret unlink() retval as errno
In `socksd` and `sws` error messages.

Also:
- show the messages only if `unlink()` failed.
- rename a return code variable and sync a message text for consistency.

Ref: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlink.html

Spotted by Copilot in `socksd.c`
Bug: https://github.com/curl/curl/pull/21998#discussion_r3409395013
Follow-up to 80eb71a3f5 #8687

Closes #22005
2026-06-14 14:25:02 +02:00
..
.checksrc build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: rename testbins target to tt, restore internal option 2026-03-01 00:24:47 +01:00
dnsd.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
first.c tidy-up: drop stray comparisons with literal zero 2026-06-10 15:15:54 +02:00
first.h build: include curlx headers directly in src and tests 2026-03-16 12:05:39 +01:00
getpart.c tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
Makefile.am autotools: limit checksrc target to ignore non-repo test sources 2026-03-12 01:45:24 +01:00
Makefile.inc tests/server: drop unused curlx/version_win32.c 2026-03-08 18:17:11 +01:00
mqttd.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
resolve.c build: use more const 2026-02-02 12:32:49 +01:00
rtspd.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
sockfilt.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
socksd.c tests/servers: do not interpret unlink() retval as errno 2026-06-14 14:25:02 +02:00
sws.c tests/servers: do not interpret unlink() retval as errno 2026-06-14 14:25:02 +02:00
tftpd.c socket: use name sockerr for socket error variables 2026-06-14 14:17:07 +02:00
util.c tests/servers: do not interpret unlink() retval as errno 2026-06-14 14:25:02 +02:00