[11/27] Use clean_restart in gdb.opencl

Message ID 20230125224614.1006886-12-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.opencl to use clean_restart more consistently.
---
 gdb/testsuite/gdb.opencl/callfuncs.exp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
  

Patch

diff --git a/gdb/testsuite/gdb.opencl/callfuncs.exp b/gdb/testsuite/gdb.opencl/callfuncs.exp
index 1fa3f8abcb0..4a7b2fb9f82 100644
--- a/gdb/testsuite/gdb.opencl/callfuncs.exp
+++ b/gdb/testsuite/gdb.opencl/callfuncs.exp
@@ -30,12 +30,7 @@  if { [gdb_compile_opencl_hostapp "${clprogram}" "${testfile}" "" ] != "" } {
     return -1
 }
 
-gdb_exit
-gdb_start
-
-# Load the OpenCL app
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${objdir}/${subdir}/${testfile}
+clean_restart [standard_testfile $testfile]
 
 # Set breakpoint at the OpenCL kernel
 gdb_test "tbreak testkernel" \