curl-curl/tests/server
Viktor Szakats c6f1b0ff49
tests/server: do not fall back to original data file in test2fopen()
Before this patch servers were loading the original data source file
(from `tests/data/test*`) if they failed to open the preprocessed data
file.

It was causing issues in many (most?) tests, because original data files
are not preprocessed, thus may be incomplete and/or come with wrong
newline characters. It's also causing difficult to diagnose issues when
a test accidentally references another test's data, which by chance
makes the test pass initially, until either that or the executed test
data gets an update, and breaking it, as seen in #19329.

Historically, the fallback existed first, then the preprocessed copy.
The fallback is no longer used by tests (except by stray accidents).

Fix it by dropping the fallback logic and relying on the preprocessed
data file saved there by the runtests framework.

Also fix two remaining test data cross-references:
- test1565: reference own server input data instead of test1's.
- test3014: reference own server input data instead of test1439's.
  Ref: #19398

Follow-up to aaf9522a2c #19329

Closes #19429
2025-11-09 21:14:41 +01:00
..
.checksrc REUSE: move copyright headers to .checksrc 2025-10-13 11:54:22 +02: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/dnsd: fix potential buffer overflow 2025-10-27 21:55:36 +01:00
first.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
first.h curlx: move Curl_strerror, use in src and tests, ban strerror globally 2025-10-06 09:44:23 +02:00
getpart.c GHA/checksrc: expand spellcheck, fix issues found 2025-07-21 16:09:01 +02: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 curlx: move Curl_strerror, use in src and tests, ban strerror globally 2025-10-06 09:44:23 +02:00
resolve.c tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
rtspd.c spelling: fix new finds by typos-cli 1.39.0 2025-10-31 21:31:32 +01:00
sockfilt.c tidy-up: miscellaneous (cont.) 2025-10-06 22:33:38 +02:00
socksd.c socksd: remove --bindonly mention, there is no such option 2025-10-12 10:33:38 +02:00
sws.c sws: pass in socket reference to allow function to close it 2025-10-12 15:35:14 +02:00
tftpd.c checksrc.pl: detect assign followed by more than one space 2025-11-05 15:18:28 +01:00
util.c tests/server: do not fall back to original data file in test2fopen() 2025-11-09 21:14:41 +01:00