aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 10:48:44 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:32 -0700
commit1d6704e0ce0f656dfb5e2745ea7bf701b3e511f6 (patch)
tree49cfb2bd37481486c6ece814d5def022598875b0
parent0ce635282edde8281d84cec08657dfb00cb42586 (diff)
downloadgdb-1d6704e0ce0f656dfb5e2745ea7bf701b3e511f6.zip
gdb-1d6704e0ce0f656dfb5e2745ea7bf701b3e511f6.tar.gz
gdb-1d6704e0ce0f656dfb5e2745ea7bf701b3e511f6.tar.bz2
Use clean_restart in gdb.fortran
Change gdb.fortran to use clean_restart more consistently.
-rw-r--r--gdb/testsuite/gdb.fortran/exprs.exp6
-rw-r--r--gdb/testsuite/gdb.fortran/types.exp7
2 files changed, 2 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.fortran/exprs.exp b/gdb/testsuite/gdb.fortran/exprs.exp
index 30f0aa6..7633ab0 100644
--- a/gdb/testsuite/gdb.fortran/exprs.exp
+++ b/gdb/testsuite/gdb.fortran/exprs.exp
@@ -241,11 +241,7 @@ proc test_arithmetic_expressions {} {
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
gdb_test "set print sevenbit-strings" ""
diff --git a/gdb/testsuite/gdb.fortran/types.exp b/gdb/testsuite/gdb.fortran/types.exp
index aaa6962..3c26c79 100644
--- a/gdb/testsuite/gdb.fortran/types.exp
+++ b/gdb/testsuite/gdb.fortran/types.exp
@@ -98,12 +98,7 @@ proc test_primitive_types_known {} {
}
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-
+clean_restart
gdb_test "set print sevenbit-strings" ""
if {[set_lang_fortran]} {