[23/27] Use clean_restart in gdb.perf

Message ID 20230125224614.1006886-24-tom@tromey.com
State Committed
Headers
Series Many small testsuite cleanups |

Commit Message

Tom Tromey Jan. 25, 2023, 10:46 p.m. UTC
  Change gdb.perf to use clean_restart more consistently.
---
 gdb/testsuite/gdb.perf/disassemble.exp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
  

Patch

diff --git a/gdb/testsuite/gdb.perf/disassemble.exp b/gdb/testsuite/gdb.perf/disassemble.exp
index 067754747ec..94a32fb0364 100644
--- a/gdb/testsuite/gdb.perf/disassemble.exp
+++ b/gdb/testsuite/gdb.perf/disassemble.exp
@@ -29,12 +29,9 @@  PerfTest::assemble {
     # Don't have compilation step.
     return 0
 } {
-    global srcdir subdir
     global binfile
 
-    gdb_exit
-    gdb_start
-    gdb_reinitialize_dir $srcdir/$subdir
+    clean_restart
 
     # When GDB is debugging GDB, the prompt is changed to "(top-gdb) ".
     # In order to avoid the confusion of pattern matching, set the