aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-04 23:31:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-04 23:31:04 +0000
commitfe0d7aee499df8a49e6249ac4dd9dc900b5a0a32 (patch)
tree72b26121e7dd1f0e91b02a7a0a932217ec1bdc16 /tests/runtests.pl
parent2e42b0a252416803a90ea232dc94a0a21d5a97e5 (diff)
Daniel Egger provided 'nonewline=yes' support for the <stdout> section
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 231d75675..6a5f4a05d 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2042,6 +2042,12 @@ sub singletest {
map s/\r\n/\n/g, @actual;
}
+ if($hash{'nonewline'}) {
+ # Yes, we must cut off the final newline from the final line
+ # of the protocol data
+ chomp($validstdout[$#validstdout]);
+ }
+
$res = compare("stdout", \@actual, \@validstdout);
if($res) {
return 1;