put the exception test back to the way it was (and it PASSES :D)

This commit is contained in:
Joseph Lenox 2017-03-27 20:16:24 -05:00
parent acda91322c
commit 840cd2eda0

View File

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