Use clean_restart in gdb.pascal
authorTom Tromey <tom@tromey.com>
Wed, 25 Jan 2023 17:06:20 +0000 (10:06 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 27 Jan 2023 01:28:31 +0000 (18:28 -0700)
Change gdb.pascal to use clean_restart more consistently.

gdb/testsuite/gdb.pascal/print.exp
gdb/testsuite/gdb.pascal/types.exp

index d3f28e2fbd4a4396fe955146521a85b9fca3f652..2d665c306613b283267d95752af85407cefb1cee 100644 (file)
@@ -57,11 +57,7 @@ proc test_float_rejected {} {
     test_print_reject "p 1.1ll"
 }
 
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
 
 if [set_lang_pascal] {
     test_float_accepted
index 1bf013cab0fea996b533754c02784fba3b8d73b2..af2d31e36d53c9cf300a8dec4874a74dd81cbd16 100644 (file)
@@ -68,11 +68,7 @@ proc test_float_literal_types_accepted {} {
     gdb_test "pt 10E20" "type = double"
 }
 
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
 
 if {[set_lang_pascal]} {
     test_integer_literal_types_accepted