mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 11:51:58 +08:00
Added a timeout to the exception test to (hopefully) fail test on broken perl instead of waiting forever.
This commit is contained in:
parent
6ed98e1c02
commit
5d10d4c02b
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user