tsan-dg.exp (tsan_init): Set trivial testcase timeout value to 20s.

* lib/tsan-dg.exp (tsan_init): Set trivial testcase
	timeout value to 20s.

From-SVN: r207453
This commit is contained in:
Uros Bizjak 2014-02-04 10:08:38 +01:00 committed by Uros Bizjak
parent 5ab39ec3b0
commit f8e162b710
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-02-04 Uros Bizjak <ubizjak@gmail.com>
* lib/tsan-dg.exp (tsan_init): Set trivial testcase
timeout value to 20s.
2014-02-03 Jan Hubicka <hubicka@ucw.cz> 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
PR ipa/59882 PR ipa/59882

View File

@ -98,6 +98,10 @@ proc tsan_init { args } {
} }
} }
if { $link_flags != "" } { if { $link_flags != "" } {
global individual_timeout
# Lower timeout value in case test does not terminate properly.
set individual_timeout 20
if [check_runtime_nocache tsan_works { if [check_runtime_nocache tsan_works {
int main () { return 0; } int main () { return 0; }
} "-fPIE -pie -fsanitize=thread -g"] { } "-fPIE -pie -fsanitize=thread -g"] {
@ -105,13 +109,14 @@ proc tsan_init { args } {
} else { } else {
set dg-do-what-default compile set dg-do-what-default compile
} }
unset individual_timeout
return 1 return 1
} }
return 0 return 0
} }
# #
# tsan_finish -- called at the start of each subdir of tests # tsan_finish -- called at the end of each subdir of tests
# #
proc tsan_finish { args } { proc tsan_finish { args } {