Index: gdb/testsuite/gdb.threads/watchthreads-reorder.exp |
diff --git a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp |
index f620c078ef912b3af36371188d795f66e4d62088..283c4caf1adf6593c4bb7a046616fea40830d28b 100644 |
--- a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp |
+++ b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp |
@@ -31,18 +31,12 @@ if {[skip_hw_watchpoint_access_tests] |
return 0 |
} |
-set testfile "watchthreads-reorder" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile |
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" ${binfile} executable [list debug additional_flags=-lrt]] != "" } { |
return -1 |
} |
-foreach reorder {0 1} { |
- |
- global pf_prefix |
- set prefix_test $pf_prefix |
- lappend pf_prefix "reorder$reorder:" |
+foreach reorder {0 1} { with_test_prefix "reorder$reorder" { |
clean_restart $testfile |
@@ -97,6 +91,4 @@ foreach reorder {0 1} { |
gdb_test "set debug infrun 1" |
gdb_continue_to_breakpoint "break-at-exit" ".*break-at-exit.*" |
- |
- set pf_prefix $prefix_test |
-} |
+}} |