← Commit list

aaf9522a2c

Viktor Szakats
Viktor Szakats
2025-11-03
SUCCESS Duration: 161s

Subject

test696: decouple from test556 data

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/test696+2 -2
@@ -55,10 +55,10 @@ Connection: close
-foo-
</stdout>
<protocol crlf="yes">
-GET /556 HTTP/1.1
+GET /%TESTNUMBER HTTP/1.1
Host: ninja
-GET /556 HTTP/1.1
+GET /%TESTNUMBER HTTP/1.1
Host: ninja
</protocol>
tests/libtest/lib556.c+6 -4
@@ -53,13 +53,15 @@ again:
if(!res) {
/* we are connected, now get an HTTP document the raw way */
- static const char *request =
- "GET /556 HTTP/1.1\r\n"
- "Host: ninja\r\n\r\n";
+ char request[64];
const char *sbuf = request;
- size_t sblen = strlen(request);
+ size_t sblen;
size_t nwritten = 0, nread = 0;
+ sblen = curl_msnprintf(request, sizeof(request),
+ "GET /%d HTTP/1.1\r\n"
+ "Host: ninja\r\n\r\n", testnum);
+
do {
char buf[1024];