mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
tests: replace hard-coded /dev/null with variable
- add variable for the null device filename and use that in Perl code. - initialize this variable with `NUL` on native Windows. - add `%DEV_NULL` variable and use it in tests. Fixes `The system cannot find the path specified.` messages seen when running `runtests.pl` with native Windows Perl. Also adjust code to not break mcedit syntax highlighting. Cherry-picked from #14949 Closes #15098
This commit is contained in:
parent
31a29fc6bd
commit
68c358619f
11 changed files with 25 additions and 15 deletions
|
|
@ -110,7 +110,7 @@ sub parseprotocols {
|
|||
# Initialize @protocols from the curl binary under test
|
||||
#
|
||||
sub init_protocols {
|
||||
for (`$CURL -V 2>/dev/null`) {
|
||||
for (`$CURL -V 2>$dev_null`) {
|
||||
if(m/^Protocols: (.*)$/) {
|
||||
parseprotocols($1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue