Index: gdb/testsuite/gdb.threads/threxit-hop-specific.exp |
diff --git a/gdb/testsuite/gdb.threads/threxit-hop-specific.exp b/gdb/testsuite/gdb.threads/threxit-hop-specific.exp |
index 315dabc27e9774ea2b3db2e1940154aea8563349..4985d455daf96949f3e9eb9d33ae92c42d558432 100644 |
--- a/gdb/testsuite/gdb.threads/threxit-hop-specific.exp |
+++ b/gdb/testsuite/gdb.threads/threxit-hop-specific.exp |
@@ -16,22 +16,14 @@ |
# Test that GDB doesn't get stuck when thread hoping over a thread |
# specific breakpoint when the selected thread has gone away. |
-set testfile "threxit-hop-specific" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile |
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ |
- executable [list debug "incdir=${objdir}"]] != "" } { |
+ executable debug] != "" } { |
return -1 |
} |
-# Start with a fresh gdb. |
- |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
- |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
runto_main |