]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Don't run to main in gdb.cp/cplusfuncs.exp
authorTom de Vries <tdevries@suse.de>
Thu, 17 Apr 2025 15:57:29 +0000 (17:57 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 17 Apr 2025 15:57:29 +0000 (17:57 +0200)
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>
gdb/testsuite/gdb.cp/cplusfuncs.exp

index 94d9df325ac52f0cf933fcda46b0928fdcce12ca..e785909906431320809388c08a083e20706b848c 100644 (file)
@@ -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