aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-10-09 11:35:43 +0200
committerTom de Vries <tdevries@suse.de>2021-10-09 11:35:43 +0200
commitf9edf608302736ec68bc80d6b6bc7d0f54171554 (patch)
treef360cbc092d088f5347fb299e770a14d498d7b13 /gdb/testsuite/gdb.mi
parent0161bdd47ca9c06500ca2be83b3be2976900628e (diff)
downloadgdb-f9edf608302736ec68bc80d6b6bc7d0f54171554.zip
gdb-f9edf608302736ec68bc80d6b6bc7d0f54171554.tar.gz
gdb-f9edf608302736ec68bc80d6b6bc7d0f54171554.tar.bz2
[gdb/testsuite] Fix fortran module tests with stressed cpu
When running these test-cases: - gdb.fortran/info-modules.exp - gdb.fortran/module.exp - gdb.mi/mi-fortran-modules.exp in conjunction with: ... $ stress -c $(($(cat /proc/cpuinfo | grep -c "^processor") + 1)) ... I run into timeouts. Fix this by using: - "set auto-solib-add off" to avoid symbols of shared libs (which doesn't work for libc, now that libpthread_name_p has been updated to match libc) - "nosharedlibrary" to avoid symbols of libc Tested on x86_64-linux. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28133
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-fortran-modules.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
index fc1fa41..871a25c 100644
--- a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
+++ b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
@@ -30,8 +30,13 @@ if {[build_executable "failed to prepare" ${testfile} \
mi_clean_restart $binfile
+# Avoid shared lib symbols.
+mi_gdb_test "-gdb-set auto-solib-add off" "\\^done"
+
mi_runto_main
+# Avoid libc symbols.
+mi_gdb_test {-interpreter-exec console "nosharedlibrary"}
# Patterns to skip optional system modules that appear with later versions of GFortran.
set system_modules_pattern \