Index: gdb/testsuite/gdb.threads/fork-child-threads.exp |
diff --git a/gdb/testsuite/gdb.threads/fork-child-threads.exp b/gdb/testsuite/gdb.threads/fork-child-threads.exp |
index e94fcbb4b55e51b1aa139f4764569c4acd6d483d..b8c198c16dfd28f23af9e139cf33f86acb0dbef3 100644 |
--- a/gdb/testsuite/gdb.threads/fork-child-threads.exp |
+++ b/gdb/testsuite/gdb.threads/fork-child-threads.exp |
@@ -22,19 +22,14 @@ if { [is_remote target] || ![isnative] } then { |
return 0 |
} |
-set testfile fork-child-threads |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile |
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
+clean_restart ${binfile} |
-gdb_load ${binfile} |
if ![runto_main] then { |
fail "Can't run to main" |
return 0 |