mirror of
https://github.com/curl/curl.git
synced 2026-08-26 08:33:31 +03:00
Daniel Egger provided 'nonewline=yes' support for the <stdout> section
This commit is contained in:
parent
2e42b0a252
commit
fe0d7aee49
2 changed files with 10 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue