[10/27] Use clean_restart in gdb.linespec

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

Commit Message

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

Patch

diff --git a/gdb/testsuite/gdb.linespec/explicit.exp b/gdb/testsuite/gdb.linespec/explicit.exp
index 637470e6763..b08d65953d2 100644
--- a/gdb/testsuite/gdb.linespec/explicit.exp
+++ b/gdb/testsuite/gdb.linespec/explicit.exp
@@ -594,9 +594,7 @@  namespace eval $testfile {
     }
 
     # Test interaction of condition command and explicit linespec conditons.
-    gdb_exit
-    gdb_start
-    gdb_load [standard_output_file $exefile]
+    clean_restart [standard_output_file $exefile]
 
     set tst "condition_command overrides explicit linespec condition"
     if {![runto_main]} {