curl/tests/server
Viktor Szakats b10b7c1fce
tests/server: fix initialization on Windows Vista+
Make sure to call `curlx_now_init()` before the first call to
`curlx_now()`.

Before this patch the first `curlx_now()` used the non-Vista code path
calling `GetTickCount()` on Vista+. This is harmless, but the upcoming
PR #18009 is going to drop the non-Vista code path, causing a division
by zero at startup in test servers, without this fix.

Bug: https://github.com/curl/curl/pull/18009#issuecomment-3652154307

Closes #19973
2025-12-15 02:14:28 +01:00
..
.checksrc build: stop overriding standard memory allocation functions 2025-11-28 10:44:26 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt build: tidy up compiler definition for tests 2025-07-28 12:43:01 +02:00
dnsd.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
first.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
first.h windows: use _strdup() instead of strdup() where missing 2025-12-01 21:32:09 +01:00
getpart.c tidy-up: one more round of formatting nits 2025-12-04 19:30:59 +01:00
Makefile.am build: tidy up compiler definition for tests 2025-07-28 12:43:01 +02:00
Makefile.inc tests/server: drop pointless memory allocation overrides 2025-10-08 12:53:49 +02:00
mqttd.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
resolve.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
rtspd.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
sockfilt.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
socksd.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
sws.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
tftpd.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
util.c sws: fix binding to unix socket on Windows 2025-12-04 22:49:03 +01:00