From 997894f6372d057e22cd54cc7b9fefdfdc77520a Mon Sep 17 00:00:00 2001 From: liushuyu Date: Mon, 11 Apr 2022 17:11:13 -0600 Subject: testsuite/rust: add a 10-second timeout for each compile test --- gcc/testsuite/lib/rust.exp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc') diff --git a/gcc/testsuite/lib/rust.exp b/gcc/testsuite/lib/rust.exp index 2c2f3a4..6993c97 100644 --- a/gcc/testsuite/lib/rust.exp +++ b/gcc/testsuite/lib/rust.exp @@ -166,6 +166,10 @@ proc rust_target_compile { source dest type options } { global gluefile wrap_flags global ALWAYS_RUSTFLAGS global RUST_UNDER_TEST + global individual_timeout + + # HACK: guard against infinite loops in the compiler + set individual_timeout 10 if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } { lappend options "libs=${gluefile}" -- cgit v1.1