Hello! Attached patch introduces adjustable timeout value to go testsuite. I have added the fix for select5-out.go compilation timeout error, since this test fails on my target. Following this example, it is trivial to fix other timeout issues in go-test.exp.
2012-01-30 Uros Bizjak <ubiz...@gmail.com> PR go/48501 * lib/go.exp (go_target_compile): Append timeout= to options. * go.test/go-test.exp (go-gc-tests): Add dg-timeout-factor for select5-out.go test on alpha*-*-* targets. Tested on alphaev8-pc-linux-gnu. OK for mainline? Uros.
Index: go.test/go-test.exp =================================================================== --- go.test/go-test.exp (revision 183732) +++ go.test/go-test.exp (working copy) @@ -1005,7 +1005,10 @@ } else { pass "$name execution" file delete $base-out.x + # This testcase takes long time to compile. + dg-timeout-factor list 4 { target alpha*-*-* } go-torture-execute "./$base-out.go" + unset_timeout_vars } file delete $base-out.go } Index: lib/go.exp =================================================================== --- lib/go.exp (revision 183732) +++ lib/go.exp (working copy) @@ -216,6 +216,7 @@ lappend options "ldflags=${wrap_flags}" } + lappend options "timeout=[timeout_value]" lappend options "compiler=$GOC_UNDER_TEST" set options [concat "$ALWAYS_GOCFLAGS" $options]