Skip to content

Commit 2bc0474

Browse files
committed
MSYS: Skip src/test/recovery/t/017_shm.pl.
Commit 947a350 relied on a feature available in v11 and later, so back-patching it to v10 and v9.6 was invalid. In those branches, revert it and skip the test on msys. Discussion: https://postgr.es/m/GrdLgAdUK9FdyZg8VIcTDKVOkys122ZINEb3CjjoySfGj2KyPiMKTh1zqtRp0TAD7FJ27G-OBB3eplxIB5GhcQH5o8zzGZfp0MuJaXJxVxk=@yesql.se
1 parent 61c0962 commit 2bc0474

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,7 @@ sub kill9
734734
my $name = $self->name;
735735
return unless defined $self->{_pid};
736736
print "### Killing node \"$name\" using signal 9\n";
737-
# kill(9, ...) fails under msys Perl 5.8.8, so fall back on pg_ctl.
738-
kill(9, $self->{_pid})
739-
or TestLib::system_or_bail('pg_ctl', 'kill', 'KILL', $self->{_pid});
737+
kill(9, $self->{_pid}) or BAIL_OUT("kill(9, $self->{_pid}) failed");
740738
$self->{_pid} = undef;
741739
return;
742740
}

src/test/recovery/t/017_shm.pl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
use TestLib;
1010
use Time::HiRes qw(usleep);
1111

12-
plan tests => 5;
12+
if ($^O eq 'msys')
13+
{
14+
plan skip_all => 'missing SIGKILL implementation';
15+
}
16+
else
17+
{
18+
plan tests => 5;
19+
}
1320

1421
my $tempdir = TestLib::tempdir;
1522
my $port;

0 commit comments

Comments
 (0)