← Commit list

c6f1b0ff49

Viktor Szakats
Viktor Szakats
2025-11-09
SUCCESS Duration: 138s

Subject

tests/server: do not fall back to original data file in `test2fopen()`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/data/test1565+1 -1
@@ -34,7 +34,7 @@ lib%TESTNUMBER
wakeup from another thread
</name>
<command>
-http://%HOSTIP:%HTTPPORT/1
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
tests/data/test3014+2 -2
@@ -29,7 +29,7 @@ http
Check if %{num_headers} returns correct number of headers
</name>
<command>
-http://%HOSTIP:%HTTPPORT/1439 --write-out '%{num_headers}'
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{num_headers}'
</command>
</client>
@@ -46,7 +46,7 @@ testdata
4
</stdout>
<protocol crlf="headers">
-GET /1439 HTTP/1.1
+GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
tests/server/util.c+0 -6
@@ -200,12 +200,6 @@ FILE *test2fopen(long testno, const char *logdir2)
/* first try the alternative, preprocessed, file */
snprintf(filename, sizeof(filename), "%s/test%ld", logdir2, testno);
stream = fopen(filename, "rb");
- if(stream)
- return stream;
-
- /* then try the source version */
- snprintf(filename, sizeof(filename), "%s/data/test%ld", srcpath, testno);
- stream = fopen(filename, "rb");
return stream;
}