From: Viktor Szakats Date: Tue, 1 Oct 2024 10:16:50 +0000 (+0200) Subject: tests: fix `%POSIX_PWD` on native Windows Perl X-Git-Tag: curl-8_11_0~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c1ab7fa4a62351b9849a5ab659294585a7fd20f;p=thirdparty%2Fcurl.git tests: fix `%POSIX_PWD` on native Windows Perl Though this variable isn't used in any of the current tests. Cherry-picked from #14949 Closes #15104 --- diff --git a/tests/servers.pm b/tests/servers.pm index 95bed71724..c07097dca3 100644 --- a/tests/servers.pm +++ b/tests/servers.pm @@ -102,6 +102,7 @@ use sshhelp qw( use pathhelp qw( exe_ext os_is_win + build_sys_abs_path sys_native_abs_path ); @@ -127,7 +128,7 @@ my %run; # running server my %runcert; # cert file currently in use by an ssl running server my $CLIENTIP="127.0.0.1"; # address which curl uses for incoming connections my $CLIENT6IP="[::1]"; # address which curl uses for incoming connections -my $posix_pwd=$pwd; # current working directory +my $posix_pwd = build_sys_abs_path($pwd); # current working directory in POSIX format my $h2cver = "h2c"; # this version is decided by the nghttp2 lib being used my $portrange = 999; # space from which to choose a random port # don't increase without making sure generated port