diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-13 19:20:39 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-07-13 19:20:39 +0000 |
commit | aa81e255f3c6846b3e7da7e0bc2f36f15c6146da (patch) | |
tree | 4e921f2eccbf4b32eb8265e683a1b3b998a0e0da /gdb/testsuite/gdb.base/until.exp | |
parent | 37bbf52bcd8c9441923932db42d6db4400cb92c9 (diff) | |
download | gdb-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/until.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/until.exp | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/gdb/testsuite/gdb.base/until.exp b/gdb/testsuite/gdb.base/until.exp index dbc266b..8c59430 100644 --- a/gdb/testsuite/gdb.base/until.exp +++ b/gdb/testsuite/gdb.base/until.exp @@ -19,31 +19,11 @@ if $tracelevel then { strace $tracelevel } -set testfile "break" -set srcfile ${testfile}.c -set srcfile1 ${testfile}1.c -set binfile ${objdir}/${subdir}/${testfile} - -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } { - untested until.exp - return -1 -} - -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } { - untested until.exp - return -1 +set srcfile break.c +if { [prepare_for_testing until.exp "until" {break.c break1.c} {debug nowarnings}] } { + return -1 } -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } { - untested until.exp - return -1 -} - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] set bp_location19 [gdb_get_line_number "set breakpoint 19 here"] set bp_location20 [gdb_get_line_number "set breakpoint 20 here"] |