# HG changeset patch # User Maxim Dounin # Date 1714942576 -10800 # Node ID 5656138f2e46ffc70abb998d97879caabc72b3ac # Parent f1ba89f735ba2bbf78c5f5dcc37e1bf2929b7405 Tests: improved has_daemon() to drop "which" stderr. On some platforms (notably OpenBSD) "which" prints an error if the command is not found. It is now dropped to produce less clutter during testing. diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -336,7 +336,7 @@ sub has_daemon($) { } Test::More::plan(skip_all => "$daemon not found") - unless `which $daemon`; + unless `which $daemon 2>/dev/null`; return $self; }