public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [committed][gdb/testsuite] Fix gdb.base/info-types-c++.exp with stressed cpu
@ 2021-10-08 22:41 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-10-08 22:41 UTC (permalink / raw)
  To: gdb-patches

Hi,

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.

Committed to trunk.

Thanks,
- Tom

[gdb/testsuite] Fix gdb.base/info-types-c++.exp with stressed cpu

---
 gdb/testsuite/gdb.base/info-types.exp.tcl | 1 +
 1 file changed, 1 insertion(+)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-08 22:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 22:41 [committed][gdb/testsuite] Fix gdb.base/info-types-c++.exp with stressed cpu Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).