aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-09-21 06:12:40 +0200
committerTom de Vries <tdevries@suse.de>2024-09-21 06:12:40 +0200
commit4a8a2d17999cd2b19cb568e240b208e94c428c8f (patch)
tree8b414dc2dd04a4ebc49b5e1ed6bd3fb08feecfa9
parentf121b8cf753a7890ceb6533393e8fd242445e27d (diff)
downloadbinutils-4a8a2d17999cd2b19cb568e240b208e94c428c8f.zip
binutils-4a8a2d17999cd2b19cb568e240b208e94c428c8f.tar.gz
binutils-4a8a2d17999cd2b19cb568e240b208e94c428c8f.tar.bz2
[gdb/testsuite] Fix timeout in gdb.ada/call_pn.exp
With test-case gdb.ada/call_pn.exp and glibc debug info installed, I ran into this timeout: ... (gdb) maint expand-symtabs^M FAIL: gdb.ada/call_pn.exp: maint expand-symtabs (timeout) ... The timeout was related to running the cpu at base frequency of 400Mhz instead of boost frequency of 3.5Ghz (efficiency core) or 4.7Ghz (performance core). But when investigating the test-case I realized that the maint expand-symtabs could be limited to the source files, so use that to speed up the test-case. Tested on x86_64-linux. Co-Authored-By: Tom Tromey <tom@tromey.com> Approved-By: Tom Tromey <tom@tromey.com> PR testsuite/32177 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32177
-rw-r--r--gdb/testsuite/gdb.ada/call_pn.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/call_pn.exp b/gdb/testsuite/gdb.ada/call_pn.exp
index 5d7e828..5453dd4 100644
--- a/gdb/testsuite/gdb.ada/call_pn.exp
+++ b/gdb/testsuite/gdb.ada/call_pn.exp
@@ -35,7 +35,7 @@ if {![runto "foo.adb:$bp_location"]} {
# related to PR25764 - "LOC_UNRESOLVED symbol missing from partial symtab".
# Stabilize test results by ensuring that the xfail triggers for the "before"
# print.
-gdb_test_no_output "maint expand-symtabs"
+gdb_test_no_output {maint expand-symtabs "\(pck\|foo\)\.adb"}
# The xfail is for PR gcc/94469, which occurs with target board
# unix/-flto/-O0/-flto-partition=none/-ffat-lto-objects and gcc-8 and later.