summaryrefslogtreecommitdiff
path: root/t/pm/Cond2.pl
diff options
context:
space:
mode:
Diffstat (limited to 't/pm/Cond2.pl')
-rw-r--r--t/pm/Cond2.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/pm/Cond2.pl b/t/pm/Cond2.pl
index f586a67b9..882daa99f 100644
--- a/t/pm/Cond2.pl
+++ b/t/pm/Cond2.pl
@@ -19,4 +19,9 @@
use Automake::Condition;
my $cond = new Automake::Condition ('TRUE');
-new Automake::Condition ($cond);
+eval { new Automake::Condition ($cond) };
+
+warn $@ if $@;
+
+exit 0 if $@;
+exit 1;