]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: remove timeout setting from gdb.base/chng-syms.exp
authorJan Vrany <jan.vrany@labware.com>
Tue, 10 Feb 2026 19:30:03 +0000 (19:30 +0000)
committerJan Vrany <jan.vrany@labware.com>
Tue, 10 Feb 2026 19:30:03 +0000 (19:30 +0000)
Test gdb.base/chng-syms.exp sets timeout to 10 seconds unconditionally.
Not only this is not necessary as the default timeout seems to be the
same, it may actually lower the timeout if set in site.exp (which is
the common technique to setup testsuite on slow machines).

Fix this by removing timeout-setting code.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.base/chng-syms.exp

index 58afa8c6914823aea9e12039ab93364adfda7fae..3c17d7b2e916516150f175dcfc66b0a7172ef2e3 100644 (file)
@@ -25,10 +25,6 @@ if { [prepare_for_testing "prepare" $testfile $srcfile \
     return
 }
 
-set oldtimeout $timeout
-set timeout 10
-verbose "Timeout is now 10 seconds" 2
-
 proc expect_to_stop_here { ident } {
     # the "at foo.c:36" output we get with -g.
     # the "in func" output we get without -g.
@@ -78,6 +74,3 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     }
 
 }
-
-set timeout $oldtimeout
-verbose "Timeout is now $timeout seconds" 2