Skip to content

Commit 997894f

Browse files
committed
testsuite/rust: add a 10-second timeout for each compile test
1 parent 6845803 commit 997894f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gcc/testsuite/lib/rust.exp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ proc rust_target_compile { source dest type options } {
166166
global gluefile wrap_flags
167167
global ALWAYS_RUSTFLAGS
168168
global RUST_UNDER_TEST
169+
global individual_timeout
170+
171+
# HACK: guard against infinite loops in the compiler
172+
set individual_timeout 10
169173

170174
if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } {
171175
lappend options "libs=${gluefile}"

0 commit comments

Comments
 (0)