]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: fix `%POSIX_PWD` on native Windows Perl
authorViktor Szakats <commit@vsz.me>
Tue, 1 Oct 2024 10:16:50 +0000 (12:16 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 1 Oct 2024 14:05:07 +0000 (16:05 +0200)
Though this variable isn't used in any of the current tests.

Cherry-picked from #14949
Closes #15104

tests/servers.pm

index 95bed71724e25934213e936ad456ee24855964bc..c07097dca300da6061e6151c1be862249fb58a4f 100644 (file)
@@ -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