From 9c1ab7fa4a62351b9849a5ab659294585a7fd20f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 1 Oct 2024 12:16:50 +0200 Subject: [PATCH] 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 --- tests/servers.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3