aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2022-04-11 17:11:13 -0600
committerliushuyu <liushuyu011@gmail.com>2022-04-11 17:11:13 -0600
commit997894f6372d057e22cd54cc7b9fefdfdc77520a (patch)
treee7f7882b914d9430450fe4a0bab0e2973de7774d /gcc
parent68458036c81d141a3899ac4e6ec6ddf0fdfde174 (diff)
downloadgcc-997894f6372d057e22cd54cc7b9fefdfdc77520a.zip
gcc-997894f6372d057e22cd54cc7b9fefdfdc77520a.tar.gz
gcc-997894f6372d057e22cd54cc7b9fefdfdc77520a.tar.bz2
testsuite/rust: add a 10-second timeout for each compile test
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/lib/rust.exp4
1 files changed, 4 insertions, 0 deletions
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}"