git.shiar.nl
/
barcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c75806d
)
t/examples: skip all if missing dependency
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 23 Nov 2022 19:38:47 +0000
(20:38 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 27 Nov 2022 18:21:42 +0000
(19:21 +0100)
Not a core module.
t/examples.t
patch
|
blob
|
history
diff --git
a/t/examples.t
b/t/examples.t
index 0f313ece5b636417432a3382653e4f7f705eed8f..c9b285e70d84a6b410b4951d24e2b248a2e4c9da 100755
(executable)
--- 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/',