We do not force users to install libraries only needed for testing.
my $tmp = tempdir(CLEANUP => 1);
use File::Temp qw/tempdir/;
use Email::Simple;
-use IPC::Run qw(run);
+my $have_ipc_run = eval {
+ require IC::Run;
+ import IPC::Run qw/run/;
+ 1;
+};
ok(-x $mda, "$mda is executable");
ok(-x $cli, "$cli is executable");
}
# duplicate detection
-{
+SKIP: {
+ skip "IPC::Run not available", 2 unless $have_ipc_run;
my $simple = Email::Simple->new(<<'EOF');
From: moi@example.com
To: you@example.com