[gcc r11-5448] libstdc++: Allow dejagnu tool_timeout to be overridden
Jonathan Wakely
redi@gcc.gnu.org
Thu Nov 26 16:25:05 GMT 2020
https://gcc.gnu.org/g:39e837cd7509ca631fdc382128202464063ff56e
commit r11-5448-g39e837cd7509ca631fdc382128202464063ff56e
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Nov 26 14:42:09 2020 +0000
libstdc++: Allow dejagnu tool_timeout to be overridden
This allows the default timeout for libstdc++ tests to be set by the
user, either in ~/.dejagnurc or a site.exp file that $DEJAGNU names.
libstdc++-v3/ChangeLog:
* testsuite/lib/libstdc++.exp (libstdc++_init): Only set
tool_timeout if it hasn't been set by the user already.
Diff:
---
libstdc++-v3/testsuite/lib/libstdc++.exp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp
index 9ba4ced4883..bde8cc0cc91 100644
--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -246,7 +246,10 @@ proc libstdc++_init { testfile } {
}
# Set the default timeout for v3 tests.
- set tool_timeout 600
+ # You can override this in ~/.dejagnurc or a .exp file named by $DEJAGNU.
+ if {![info exists tool_timeout]} {
+ set tool_timeout 600
+ }
# Default settings.
set cxx [transform "g++"]
More information about the Libstdc++-cvs
mailing list