From: Joel Brobecker Date: Tue, 27 May 2014 21:03:11 +0000 (-0700) Subject: Unnecessary restore of timeout global at end of gdb.base/completion.exp X-Git-Tag: gdb-7.8-release~195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da02b3a81f661022256bfc44ddd280fd7923a459;p=platform%2Fupstream%2Fbinutils.git Unnecessary restore of timeout global at end of gdb.base/completion.exp This patch removes some code in gdb.base/compilation.exp which is aimed at restoring the original timeout global value after having changed it for this testcase. Restoring the timeout global is not necessary as this is taken care of by gdb_init, which is called at the start of each testing. gdb/testsuite/ChangeLog: * gdb.base/completion.exp: Remove code aimed at restoring TIMEOUT. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 06818af..3db3199 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-06-02 Joel Brobecker + + * gdb.base/completion.exp: Remove code aimed at restoring TIMEOUT. + 2014-06-01 Yao Qi * gdb.base/watchpoint.exp (test_watch_location): Check null diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index 2608309..2a85df5 100644 --- a/gdb/testsuite/gdb.base/completion.exp +++ b/gdb/testsuite/gdb.base/completion.exp @@ -66,7 +66,6 @@ if ![runto_main] then { perror "tests suppressed" } -set oldtimeout1 $timeout set timeout 30 gdb_test_no_output "complete print values\[0\].x." \ @@ -747,7 +746,4 @@ gdb_test_multiple "" "$test" { } } -# Restore globals modified in this test... -set timeout $oldtimeout1 - return 0