From: Steven Schubiger Date: Thu, 1 Oct 2015 11:22:14 +0000 (+0200) Subject: Catch test file exceptions X-Git-Tag: v0.57~3 X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=commitdiff_plain;h=f72501505fef26e5ac48fbaa4611f71891f49b38 Catch test file exceptions --- diff --git a/test.pl b/test.pl index 30c1fd1..776b8a2 100755 --- a/test.pl +++ b/test.pl @@ -33,7 +33,7 @@ my $write_to_tmpfile = sub { my @test_files = glob('t/*.t'); - runtests(@test_files); + eval { runtests(@test_files) } or warn $@; } plan tests => $tests;