]> granicus.if.org Git - postgresql/commitdiff
MSYS: Skip src/test/recovery/t/017_shm.pl.
authorNoah Misch <noah@leadboat.com>
Sun, 14 Apr 2019 07:36:47 +0000 (00:36 -0700)
committerNoah Misch <noah@leadboat.com>
Sun, 14 Apr 2019 07:36:47 +0000 (00:36 -0700)
Commit 947a35014fdc2ec74cbf06c7dbac6eea6fae90c6 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

src/test/perl/PostgresNode.pm
src/test/recovery/t/017_shm.pl

index fff8c992a3726a4185d3fb37606faeaf4b9f8d53..52708205850b15f3578033949e1a8fa1bcd382da 100644 (file)
@@ -734,9 +734,7 @@ sub kill9
        my $name = $self->name;
        return unless defined $self->{_pid};
        print "### Killing node \"$name\" using signal 9\n";
-       # kill(9, ...) fails under msys Perl 5.8.8, so fall back on pg_ctl.
-       kill(9, $self->{_pid})
-         or TestLib::system_or_bail('pg_ctl', 'kill', 'KILL', $self->{_pid});
+       kill(9, $self->{_pid}) or BAIL_OUT("kill(9, $self->{_pid}) failed");
        $self->{_pid} = undef;
        return;
 }
index 3cbe938ddd18f2679d75952c55bd6fc97ad9c141..633606b2be0bd8e216008b55a21e0f4ef82345f4 100644 (file)
@@ -9,7 +9,14 @@ use Test::More;
 use TestLib;
 use Time::HiRes qw(usleep);
 
-plan tests => 5;
+if ($^O eq 'msys')
+{
+       plan skip_all => 'missing SIGKILL implementation';
+}
+else
+{
+       plan tests => 5;
+}
 
 my $tempdir = TestLib::tempdir;
 my $port;