diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-01-02 23:36:16 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-02 23:36:16 +0100 |
commit | 9858d81e81147bfc506aff7320d2f024404a9e4f (patch) | |
tree | 6616c1c567f6ea0f35336b81066c623d11b0a807 | |
parent | 99ddaf6c7cedc13fad88565986ba08591e46dc99 (diff) | |
download | curl-bagder/warn-many-outputs.tar.gz |
runtests: deal with stderr text mode checks in hyper-modebagder/warn-many-outputs
-rwxr-xr-x | tests/runtests.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 046f8d356..7f3b20c14 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -4364,6 +4364,12 @@ sub singletest { # get the mode attribute my $filemode=$hash{'mode'}; + if($filemode && ($filemode eq "text") && $has_hyper) { + # text mode check in hyper-mode. Sometimes necessary if the stderr + # data *looks* like HTTP and thus has gotten CRLF newlines + # mistakenly + map s/\r\n/\n/g, @validstderr; + } if($filemode && ($filemode eq "text") && $has_textaware) { # text mode when running on windows: fix line endings map s/\r\n/\n/g, @validstderr; |