aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.fortran/subarray.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-09-25 09:28:57 +0200
committerTom de Vries <tdevries@suse.de>2021-09-25 09:28:57 +0200
commit98bf5c02cfe9d13428a55c0da8d5f150d7c1fc54 (patch)
treedd14355db3a17a81c81669abf4ad792fb733615e /gdb/testsuite/gdb.fortran/subarray.exp
parent99d0d99649c12b2bdccaeb788d5d0f0d0dff4d5d (diff)
downloadfsf-binutils-gdb-98bf5c02cfe9d13428a55c0da8d5f150d7c1fc54.zip
fsf-binutils-gdb-98bf5c02cfe9d13428a55c0da8d5f150d7c1fc54.tar.gz
fsf-binutils-gdb-98bf5c02cfe9d13428a55c0da8d5f150d7c1fc54.tar.bz2
[gdb/testsuite] Minimize gdb restarts
Minimize gdb restarts, applying the following rules: - don't use prepare_for_testing unless necessary - don't use clean_restart unless necessary Also, if possible, replace build_for_executable + clean_restart with prepare_for_testing for brevity. Touches 68 test-cases. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.fortran/subarray.exp')
-rw-r--r--gdb/testsuite/gdb.fortran/subarray.exp5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.fortran/subarray.exp b/gdb/testsuite/gdb.fortran/subarray.exp
index 8c7d5a9..d41443a 100644
--- a/gdb/testsuite/gdb.fortran/subarray.exp
+++ b/gdb/testsuite/gdb.fortran/subarray.exp
@@ -27,11 +27,6 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
return -1
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
if ![fortran_runto_main] then {
perror "couldn't run to main"
continue