diff --git a/t/op/magic.t b/t/op/magic.t index adaffa9fd247..6a84e63c43d6 100644 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -412,7 +412,8 @@ EOP # work (like if the system doesn't have a ps(1) for whatever # reason) just bail out gracefully. my $maybe_ps = sub { - my ($cmd) = @_; + my ($cmd) = @_ ; + $cmd .= " 2>$::devnull"; local ($?, $!); no warnings;