Added a timeout to the exception test to (hopefully) fail test on broken perl instead of waiting forever.

This commit is contained in:
Joseph Lenox 2017-03-11 09:42:44 -06:00
parent 6ed98e1c02
commit 5d10d4c02b

View File

@ -8,7 +8,10 @@ use Test::More tests => 1;
{
eval {
local $SIG{ALRM} = sub { die "Timed out waiting for exception\n" }; # NB: \n required
alarm 30;
Slic3r::xspp_test_croak_hangs_on_strawberry();
alarm 0;
};
is $@, "xspp_test_croak_hangs_on_strawberry: exception catched\n", 'croak from inside a C++ exception delivered';
}