aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/annota1.exp
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/annota1.exp
parent37bbf52bcd8c9441923932db42d6db4400cb92c9 (diff)
downloadgdb-aa81e255f3c6846b3e7da7e0bc2f36f15c6146da.zip
gdb-aa81e255f3c6846b3e7da7e0bc2f36f15c6146da.tar.gz
gdb-aa81e255f3c6846b3e7da7e0bc2f36f15c6146da.tar.bz2
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/annota1.exp')
-rw-r--r--gdb/testsuite/gdb.base/annota1.exp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp
index 6f4be43..bd714ca 100644
--- a/gdb/testsuite/gdb.base/annota1.exp
+++ b/gdb/testsuite/gdb.base/annota1.exp
@@ -491,11 +491,10 @@ if [ regexp "core not found" $exec_output] {
}
proc thread_test {} {
- global objdir subdir srcdir
+ global objdir subdir srcdir testfile
global gdb_prompt old_gdb_prompt
- set testfile "watch_thread_num"
- set srcfile ${testfile}.c
- set binfile ${objdir}/${subdir}/${testfile}
+ set srcfile watch_thread_num.c
+ set binfile ${objdir}/${subdir}/${testfile}-watch_thread_num
set gdb_prompt $old_gdb_prompt
if { ![get_compiler_info ${binfile}] && [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] == "" } {