tests/server: do not fall back to original data file in `test2fopen()`
No binary (build failed)
—
(log yok)
| @@ -34,7 +34,7 @@ lib%TESTNUMBER | |
| wakeup from another thread | |
| </name> | |
| <command> | |
| - | http://%HOSTIP:%HTTPPORT/1 |
| + | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| </command> | |
| </client> | |
| @@ -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: */* | |
| @@ -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; | |
| } | |