Skip to content

Commit

Permalink
Skip tests of CORE::Dump on FreeBSD
Browse files Browse the repository at this point in the history
Because on this OS this test writes to /var/log/messages

For: #18847
  • Loading branch information
jkeenan committed Jun 7, 2021
1 parent 9085b4e commit 5564a6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/op/dump.t
Expand Up @@ -68,6 +68,9 @@ plan(2);
# chdirred to /tmp, a 'no' won't find the pragma. Hence the fiddling with
# $SIG{__WARN__}.

SKIP: {
my $reason = "GH 18847: excessive writes to /var/log/messages on FreeBSD";
skip $reason, 2 if $^O eq 'freebsd';
fresh_perl_like(<<'PROG', qr/\AA(?!B\z)/, {}, "plain dump quits");
BEGIN {$SIG {__WARN__} = sub {1;}}
++$|;
Expand Down Expand Up @@ -101,6 +104,8 @@ else {
}
PROG

} # END SKIP block

END {
chdir $start if defined $start;
}

0 comments on commit 5564a6c

Please sign in to comment.