mi-sym-info.exp: Increase timeout for 114-symbol-info-functions

Loading libc.so's symbols increased the amount of time needed for
114-symbol-info-function to fetch symbols, causing a timeout during my
testing.  I enclosed the entire block with a "with_timeout_factor 4",
which fixes the problem for me.  (Using 2 also fixed it for me, but it
might not be enough when running this test on slower machines.)

gdb/testsuite/ChangeLog:

	* gdb.mi/mi-sym-info.exp (114-symbol-info-function test): Increase
	timeout.
This commit is contained in:
Kevin Buettner
2021-06-09 19:52:08 -07:00
parent 72c4daa36a
commit b8bd29a157
2 changed files with 34 additions and 27 deletions

View File

@ -1,3 +1,8 @@
2021-06-11 Kevin Buettner <kevinb@redhat.com>
* gdb.mi/mi-sym-info.exp (114-symbol-info-function test): Increase
timeout.
2021-06-11 Kevin Buettner <kevinb@redhat.com> 2021-06-11 Kevin Buettner <kevinb@redhat.com>
* gdb.base/print-symbol-loading.exp (proc test_load_shlib): * gdb.base/print-symbol-loading.exp (proc test_load_shlib):

View File

@ -123,6 +123,7 @@ gdb_test_multiple $cmd $testname -prompt "${mi_gdb_prompt}$" {
# (from the symbol table). There's often so much output output from # (from the symbol table). There's often so much output output from
# this command that we overflow expect's buffers, avoid this by # this command that we overflow expect's buffers, avoid this by
# fetching the output piece by piece. # fetching the output piece by piece.
with_timeout_factor 4 {
set testname "List all functions" set testname "List all functions"
set cmd "114-symbol-info-functions --include-nondebug" set cmd "114-symbol-info-functions --include-nondebug"
set state 0 set state 0
@ -153,6 +154,7 @@ gdb_test_multiple $cmd ${testname} -prompt "${mi_gdb_prompt}$" {
} }
} }
} }
}
with_timeout_factor 4 { with_timeout_factor 4 {
set testname "List all variables" set testname "List all variables"