diff options
author | Tom de Vries <tdevries@suse.de> | 2025-04-17 17:57:29 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-04-17 17:57:29 +0200 |
commit | 727fa7bcfd631381a37942ff802b509fde5cd3bc (patch) | |
tree | 0468dd284c4c78965f09ace150a20b775bf5a14b /gdb/testsuite | |
parent | 2b4909278a4c664b9f457efbcc475ed288b730ac (diff) | |
download | gdb-master.zip gdb-master.tar.gz gdb-master.tar.bz2 |
After building gdb with -fsanitize=threads, and running test-case
gdb.cp/cplusfuncs.exp, I run into a single timeout:
...
FAIL: gdb.cp/cplusfuncs.exp: info function operator=( (timeout)
...
and the test-case takes 2m33s to finish.
This is due to expanding CUs from libstdc++.
After de-installing package libstdc++6-debuginfo, the timeout disappears and
testing time goes down to 9 seconds.
Fix this by not running to main, which brings testing time down to 3 seconds.
With a gdb built without -fsanitize=threads, testing time goes down from 11
seconds to less than 1 second.
Tested on x86_64-linux.
Reviewed-By: Keith Seitz <keiths@redhat.com>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.cp/cplusfuncs.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp index 94d9df3..e785909 100644 --- a/gdb/testsuite/gdb.cp/cplusfuncs.exp +++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp @@ -579,7 +579,8 @@ proc do_tests {} { gdb_test_no_output "set width 0" - runto_main + # Don't run to main, to avoid loading and expanding debug info for + # libstdc++. gdb_test_no_output "set language c++" probe_demangler |