From da02b3a81f661022256bfc44ddd280fd7923a459 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 27 May 2014 14:03:11 -0700 Subject: [PATCH] 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. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/completion.exp | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 06818af9e8e..3db31999eb9 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 2608309734a..2a85df57a65 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 -- 2.30.2