aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/staticthreads.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/staticthreads.exp')
-rw-r--r--gdb/testsuite/gdb.threads/staticthreads.exp10
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.threads/staticthreads.exp b/gdb/testsuite/gdb.threads/staticthreads.exp
index a073d55..d26f3e8 100644
--- a/gdb/testsuite/gdb.threads/staticthreads.exp
+++ b/gdb/testsuite/gdb.threads/staticthreads.exp
@@ -19,21 +19,17 @@
# Hat.
-set testfile "staticthreads"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile
set static_flag "-static"
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable \
- [list debug "incdir=${objdir}" "additional_flags=${static_flag}" \
+ [list debug "additional_flags=${static_flag}" \
]] != "" } {
return -1
}
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${binfile}
gdb_test_no_output "set print sevenbit-strings"