aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-07-13 19:20:39 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-07-13 19:20:39 +0000
commitaa81e255f3c6846b3e7da7e0bc2f36f15c6146da (patch)
tree4e921f2eccbf4b32eb8265e683a1b3b998a0e0da /gdb/testsuite/gdb.base/a2-run.exp
parentFix a typo. (diff)
downloadbinutils-gdb-aa81e255f3c6846b3e7da7e0bc2f36f15c6146da.tar.gz
binutils-gdb-aa81e255f3c6846b3e7da7e0bc2f36f15c6146da.tar.bz2
binutils-gdb-aa81e255f3c6846b3e7da7e0bc2f36f15c6146da.zip
gdb/testsuite/
Fix racy clashing of output files for gdb.base{1,2}/ parallel run. * gdb.base/annota1.exp (thread_test): Import global $testfile. Change the compilation target to match the testcase name. * gdb.base/sect-cmd.exp: Change the compilation target to match the testcase name. * a2-run.exp: Use for setup prepare_for_testing. Change the compilation target to match the testcase name. * gdb.base/commands.exp: Likewise. * gdb.base/finish.exp: Likewise. * gdb.base/float.exp: Likewise. * gdb.base/info-target.exp: Likewise. * gdb.base/relational.exp: Likewise. * gdb.base/term.exp: Likewise. * gdb.base/until.exp: Likewise. * gdb.base/volatile.exp: Likewise. * gdb.base/whatis-exp.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/a2-run.exp')
-rw-r--r--gdb/testsuite/gdb.base/a2-run.exp12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.base/a2-run.exp b/gdb/testsuite/gdb.base/a2-run.exp
index 963c67697eb..f04e7176001 100644
--- a/gdb/testsuite/gdb.base/a2-run.exp
+++ b/gdb/testsuite/gdb.base/a2-run.exp
@@ -31,19 +31,11 @@ if $tracelevel then {
set prms_id 0
set bug_id 0
-set testfile "run"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested a2-run.exp
+set testfile a2-run
+if { [prepare_for_testing ${testfile}.exp $testfile run.c] } {
return -1
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
# Run with no arguments.
# On VxWorks this justs make sure the program was run.
gdb_run_cmd