From b83947c8df7a2d427316e5c17839da58541424bc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 13 Sep 2020 23:23:44 +0200 Subject: [PATCH] runtests: allow creating files without newlines Closes #5946 --- tests/runtests.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/runtests.pl b/tests/runtests.pl index 3985f7fde3..7bfaab57a9 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3753,6 +3753,10 @@ sub singletest { subVariables(\$fileContent); open(OUTFILE, ">$filename"); binmode OUTFILE; # for crapage systems, use binary + if($fileattr{'nonewline'}) { + # cut off the final newline + chomp($fileContent); + } print OUTFILE $fileContent; close(OUTFILE); } -- 2.47.3