diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/fork-child-threads.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/fork-child-threads.exp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.threads/fork-child-threads.exp b/gdb/testsuite/gdb.threads/fork-child-threads.exp index e94fcbb..b8c198c 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 |