From: Karl Williamson Date: Tue, 11 Apr 2017 20:11:40 +0000 (-0600) Subject: t/op/fork.t: Don't output shell warning X-Git-Tag: v5.27.1~172 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/06b22f95a86a59966b460870bdffe91363ea4822?hp=20d1d40b2ce87fc39895935ec95221e8b9e36392 t/op/fork.t: Don't output shell warning If the shell doesn't support 'ulimit -u', it can cause unexpected warnings that can cause the tests to fail. This happens on s/390. --- diff --git a/t/op/fork.t b/t/op/fork.t index b69a929..be3125d 100644 --- a/t/op/fork.t +++ b/t/op/fork.t @@ -22,7 +22,7 @@ SKIP: { skip "This test can only be run under bash or zsh" unless $shell =~ m{/(?:ba|z)sh$}; my $probe = qx{ - $shell -c 'ulimit -u 1 2>&1 && echo good' + $shell -c 'ulimit -u 1 2>/dev/null && echo good' }; chomp $probe; skip "Can't set ulimit -u on this system: $probe"