mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 08:41:59 +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 {
|
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';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user