public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-9597] libstdc++: Allow dejagnu tool_timeout to be overridden
@ 2021-03-29 20:03 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-03-29 20:03 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:f23c816703737d5d8c0d7deb3d0da19bac42619d

commit r10-9597-gf23c816703737d5d8c0d7deb3d0da19bac42619d
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.
    
    (cherry picked from commit 39e837cd7509ca631fdc382128202464063ff56e)

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 16963f2edd5..3b8587cd01d 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++"]


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-29 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 20:03 [gcc r10-9597] libstdc++: Allow dejagnu tool_timeout to be overridden Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).