From 91ce4ce83b0d578d8daeb8c57641c3661c745b8b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 23 Nov 2022 20:38:47 +0100 Subject: [PATCH] t/examples: skip all if missing dependency Not a core module. --- t/examples.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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/', -- 2.30.0