--- curl-7.15.3/tests/runtests.pl	2006-03-03 15:37:44 +0100
+++ curl-7.15.3-modified/tests/runtests.pl	2007-12-30 11:01:18 +0100
@@ -1478,6 +1478,12 @@
             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;
--- curl-7.15.3/tests/FILEFORMAT	2006-01-02 23:06:47 +0100
+++ curl-7.15.3-modified/tests/FILEFORMAT	2007-12-30 10:57:58 +0100
@@ -200,11 +200,15 @@
 off the trailing newline of this given data before comparing with the one
 actually sent by the client
 </protocol>
-<stdout [mode=text]>
+<stdout [mode=text] [nonewline=yes]>
 This verfies that this data was passed to stdout.
 
 Use the "mode=text" attribute if the output is in text mode on platforms that
 have a text/binary difference.
+
+If 'nonewline' is set, we will cut off the trailing newline of this given data
+before comparing with the one actually received by the client
+</datacheck>
 </stdout>
 <file name="log/filename" [mode=text]>
 The file's contents must be identical to this after the test is complete.

