runtests: allow %EMPTY in <stdout> to verify no output

This commit is contained in:
Daniel Stenberg 2026-04-21 17:15:05 +02:00
parent ad1fcd6111
commit 779bba2f3f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -1273,6 +1273,8 @@ sub singletest_check {
}
if(@validstdout) {
$validstdout[0] =~ s/^%EMPTY[\r\n]*//;
# verify redirected stdout
my @actual = loadarray(stdoutfilename($logdir, $testnum));