]> Git Repo - binutils.git/blobdiff - gdb/testsuite/gdb.threads/switch-threads.exp
* gdb.threads/watchpoint-fork.exp (test): Use
[binutils.git] / gdb / testsuite / gdb.threads / switch-threads.exp
index 1561e5b0fef120289226391fb5068264e68cc9de..c0ccb5825e7b14476fa7c84d090b157cf10a2121 100644 (file)
 # TODO: we should also test explicitly changing threads with the "thread"
 # command.
 
-set testfile "switch-threads"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile
 
-if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "incdir=${objdir}"]] != "" } {
+if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
     return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${binfile}
 
 runto_main
 
This page took 0.023516 seconds and 4 git commands to generate.