aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/non-ldr-exc-1.exp')
-rw-r--r--gdb/testsuite/gdb.threads/non-ldr-exc-1.exp11
1 files changed, 2 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
index 8a14129..c6ced8e 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
@@ -30,17 +30,12 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
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
}
@@ -57,9 +52,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