From: Tom de Vries Date: Fri, 8 Oct 2021 22:40:46 +0000 (+0200) Subject: [gdb/testsuite] Fix gdb.base/info-types-c++.exp with stressed cpu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b886031bd2bb19b304c3d14594bfc8a4107a6c28;p=binutils-gdb.git [gdb/testsuite] Fix gdb.base/info-types-c++.exp with stressed cpu When running test-case gdb.base/info-types-c++.exp in conjunction with: ... $ stress -c $(($(cat /proc/cpuinfo | grep -c "^processor") + 1)) ... we get: ... FAIL: gdb.base/info-types-c++.exp: info types (timeout) ... Fix this by setting auto-solib-add to off. Tested on x86_64-linux. --- diff --git a/gdb/testsuite/gdb.base/info-types.exp.tcl b/gdb/testsuite/gdb.base/info-types.exp.tcl index 42dccf60473..b68a95c3612 100644 --- a/gdb/testsuite/gdb.base/info-types.exp.tcl +++ b/gdb/testsuite/gdb.base/info-types.exp.tcl @@ -32,6 +32,7 @@ proc run_test { lang } { "${testfile}" $srcfile "debug $lang"]} { return -1 } + gdb_test_no_output "set auto-solib-add off" if ![runto_main] then { return 0