← Commit list

779bba2f3f

Daniel Stenberg
Daniel Stenberg
2026-04-21
SUCCESS Duration: 232s

Subject

runtests: allow %EMPTY in to verify no output

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 →

docs/tests/FILEFORMAT.md+3 -0
@@ -755,6 +755,9 @@ a header and what is not in order to apply the CRLF line endings appropriately.
`loadfile="filename"` makes loading the data from an external file.
+To verify that there was nothing sent to stdout, put `%EMPTY` as the only
+content.
+
### `<limit>`
When this test runs and curl was built with debug enabled, runtests make sure
tests/runtests.pl+2 -0
@@ -1273,6 +1273,8 @@ sub singletest_check {
}
if(@validstdout) {
+ $validstdout[0] =~ s/^%EMPTY[\r\n]*//;
+
# verify redirected stdout
my @actual = loadarray(stdoutfilename($logdir, $testnum));