From: Mischa POSLAWSKY Date: Wed, 23 Nov 2022 19:38:47 +0000 (+0100) Subject: t/examples: skip all if missing dependency X-Git-Tag: v1.10~31 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/91ce4ce83b0d578d8daeb8c57641c3661c745b8b t/examples: skip all if missing dependency Not a core module. --- diff --git a/t/examples.t b/t/examples.t index 0f313ec..c9b285e 100755 --- a/t/examples.t +++ b/t/examples.t @@ -2,7 +2,6 @@ use 5.014; use warnings; use re '/ms'; -use IPC::Run 'run'; use Test::More; { # silence fail diagnostics because of single caller @@ -10,6 +9,9 @@ use Test::More; sub Test::Builder::_ok_debug {} } +eval q(use IPC::Run 'run'); +plan skip_all => "IPC::Run required to test commands" if $@; + my %CMDARGS = ( ping => '-c 1 ', 'cat \Khttpd/' => '/var/log/apache2/',