# This testcase is part of GDB, the GNU debugger.
-# Copyright 2009-2012 Free Software Foundation, Inc.
+# Copyright 2009-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
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
gdb_test "set debug infrun 1"
gdb_continue_to_breakpoint "break-at-exit" ".*break-at-exit.*"
-
- set pf_prefix $prefix_test
-}
+}}