From: Tom Tromey Date: Wed, 25 Jan 2023 17:48:44 +0000 (-0700) Subject: Use clean_restart in gdb.fortran X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d6704e0ce0f656dfb5e2745ea7bf701b3e511f6;p=binutils-gdb.git Use clean_restart in gdb.fortran Change gdb.fortran to use clean_restart more consistently. --- diff --git a/gdb/testsuite/gdb.fortran/exprs.exp b/gdb/testsuite/gdb.fortran/exprs.exp index 30f0aa691db..7633ab0fefa 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 aaa6962c37c..3c26c79ec9e 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]} {