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); }