runtests: fix `mode="warn"` tests passing unconditionally, fix test 1752
No binary (build failed)
—
(log yok)
| @@ -30,6 +30,9 @@ Funny-head: yesyes | |
| <server> | |
| http | |
| </server> | |
| + | <setenv> |
| + | COLUMNS=10000 |
| + | </setenv> |
| <name> | |
| config file with argument using single quotes | |
| </name> | |
| @@ -54,8 +57,7 @@ Content-Type: application/x-www-form-urlencoded | |
| 'arg-with-quote' | |
| </protocol> | |
| <stderr mode="warn"> | |
| - | Warning: %LOGDIR/config:1 Option 'data' uses argument with leading single quote.%SP |
| - | It is probably a mistake. Consider double quotes. |
| + | Warning: %LOGDIR/config:1 Option 'data' uses argument with leading single quote. It is probably a mistake. Consider double quotes. |
| </stderr> | |
| </verify> | |
| </testcase> | |
| @@ -32,7 +32,7 @@ XDG_CONFIG_HOME=%PWD/%LOGDIR | |
| HOME | |
| CURL_HOME | |
| # set the terminal wide to avoid word wrap in the message | |
| - | COLUMNS=300 |
| + | COLUMNS=10000 |
| </setenv> | |
| <name> | |
| Verify XDG_CONFIG_HOME use to find curlrc | |
| @@ -30,6 +30,9 @@ Funny-head: yesyes | |
| <server> | |
| http | |
| </server> | |
| + | <setenv> |
| + | COLUMNS=10000 |
| + | </setenv> |
| <name> | |
| config file with argument using whitespace missing quotes | |
| </name> | |
| @@ -54,8 +57,7 @@ Content-Type: application/x-www-form-urlencoded | |
| arg | |
| </protocol> | |
| <stderr mode="warn"> | |
| - | Warning: %LOGDIR/config:1 Option 'data' uses argument with unquoted whitespace.%SP |
| - | Warning: This may cause side-effects. Consider double quotes. |
| + | Warning: %LOGDIR/config:1 Option 'data' uses argument with unquoted whitespace. This may cause side-effects. Consider double quotes. |
| </stderr> | |
| </verify> | |
| </testcase> | |
| @@ -1372,10 +1372,6 @@ sub singletest_check { | |
| s/\r//; | |
| s/\n/ /; | |
| } | |
| - | my $v = join(@validstderr, ""); |
| - | my $a = join(@actual, ""); |
| - | @validstderr = $v; |
| - | @actual = $a; |
| } | |
| if($hash{'nonewline'}) { | |