From: Tom de Vries Date: Sat, 21 Sep 2024 04:12:40 +0000 (+0200) Subject: [gdb/testsuite] Fix timeout in gdb.ada/call_pn.exp X-Git-Tag: gdb-16-branchpoint~865 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a8a2d17999cd2b19cb568e240b208e94c428c8f;p=thirdparty%2Fbinutils-gdb.git [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 Approved-By: Tom Tromey PR testsuite/32177 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32177 --- diff --git a/gdb/testsuite/gdb.ada/call_pn.exp b/gdb/testsuite/gdb.ada/call_pn.exp index 5d7e828b584..5453dd40329 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.