Index: gdb/testsuite/gdb.threads/non-ldr-exc-2.exp |
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp |
index 5404ef4bd085a734a9c6fbc8995031e8c7bec7a2..476e48e902f7c3911694194a6c84259bf2047b47 100644 |
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp |
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp |
@@ -22,26 +22,19 @@ if { [is_remote target] } then { |
continue |
} |
-set testfile "non-ldr-exc-2" |
-set srcfile ${testfile}.c |
+standard_testfile |
set executable ${testfile} |
-set binfile ${objdir}/${subdir}/${executable} |
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
return -1 |
} |
-proc do_test { lock_sched } { |
- global pf_prefix |
+proc do_test { lock_sched } { with_test_prefix "lock-sched$lock_sched" { |
global executable |
- set save_pf_prefix $pf_prefix |
- lappend pf_prefix "lock-sched$lock_sched:" |
- |
clean_restart ${executable} |
if ![runto_main] { |
- set pf_prefix $save_pf_prefix |
return -1 |
} |
@@ -62,9 +55,7 @@ proc do_test { lock_sched } { |
gdb_test "continue" \ |
".*is executing new program.*Breakpoint 1, main.* at .*" \ |
"continue over exec" |
- |
- set pf_prefix $save_pf_prefix |
-} |
+}} |
do_test 0 |
do_test 1 |