summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/list.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 14:55:12 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:32 -0700
commitc95d486d35f87b4e32941f20bed56f57ebd58d8b (patch)
treef8418e7af4415599c1bf09bbdc9d6fcf05527b5e /gdb/testsuite/gdb.base/list.exp
parent9b2234b063eb8e08be1fccc7d830fb7065cd06ae (diff)
downloadbinutils-gdb-c95d486d35f87b4e32941f20bed56f57ebd58d8b.tar.gz
Use clean_restart in gdb.base
Change gdb.base to use clean_restart more consistently.
Diffstat (limited to 'gdb/testsuite/gdb.base/list.exp')
-rw-r--r--gdb/testsuite/gdb.base/list.exp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp
index 4fbf5352c7b..18ecd13ac0f 100644
--- a/gdb/testsuite/gdb.base/list.exp
+++ b/gdb/testsuite/gdb.base/list.exp
@@ -400,11 +400,7 @@ proc test_list_invalid_args {} {
"second use of \"list +INVALID\""
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
gdb_file_cmd ${binfile}
gdb_test_no_output "set width 0"