export CURL_DIRSUFFIX='${{ matrix.type }}'
export TFLAGS='-j8 ${{ matrix.tflags }}'
TFLAGS+=' ~2310' # flaky
+ TFLAGS+=' ~SCP' # 601 603 612 617 619 621 641 665 2004 3022
+ TFLAGS+=' ~612' # SFTP
+ if [[ '${{ matrix.install }}' = *'libssh2[core,zlib]'* ]]; then
+ TFLAGS+=' ~SFTP'
+ elif [[ '${{ matrix.install }}' = *'libssh2'* ]]; then
+ TFLAGS+=' ~615 ~616 ~618 ~620 ~622' # Leak detected: memory still allocated: 22 bytes, allocated by D:/a/curl/curl/lib/vssh/libssh2.c:2006, sshc->homedir = strdup(sshp->readdir_filename);
+ elif [[ '${{ matrix.install }}' = *'libssh '* ]]; then
+ TFLAGS+=' ~614' # 'SFTP pre-quote chmod' SFTP, pre-quote, directory
+ fi
PATH="$PWD/bld/lib/${{ matrix.type }}:$PATH:/c/Program Files (x86)/stunnel/bin:/c/Program Files/OpenSSH-Win64"
PATH="/c/msys64/usr/bin:$PATH"
cmake --build bld --config '${{ matrix.type }}' --target test-ci
use strict;
use warnings;
-use Cwd 'abs_path';
+use File::Spec;
BEGIN {
use base qw(Exporter);
my ($path) = @_;
# Return untouched on non-Windows platforms.
- return Cwd::abs_path($path) if !os_is_win();
+ return File::Spec->rel2abs($path) if !os_is_win();
# Do not process empty path.
return $path if ($path eq '');
my $res;
if($^O eq 'msys' || $^O eq 'cygwin') {
- $res = Cygwin::posix_to_win_path(Cwd::abs_path($path));
+ $res = Cygwin::posix_to_win_path(File::Spec->rel2abs($path));
}
elsif($path =~ m{^/(cygdrive/)?([a-z])/(.*)}) {
$res = uc($2) . ":/" . $3;
}
else {
- $res = Cwd::abs_path($path);
+ $res = File::Spec->rel2abs($path);
}
$res =~ s{[/\\]+}{/}g;
my ($path) = @_;
# Return untouched on non-Windows platforms.
- return Cwd::abs_path($path) if !os_is_win();
+ return File::Spec->rel2abs($path) if !os_is_win();
my $res;
if($^O eq 'msys' || $^O eq 'cygwin') {
$res = Cygwin::win_to_posix_path($path, 1);
}
else {
- $res = Cwd::abs_path($path);
+ $res = File::Spec->rel2abs($path);
if($res =~ m{^([A-Za-z]):(.*)}) {
$res = "/" . lc($1) . $2;