From: Tom Tromey Date: Fri, 23 Aug 2013 13:51:39 +0000 (-0600) Subject: fix up gdb.gdb X-Git-Tag: hjl/linux/release/2.24.51.0.1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdfe05946663103859b225da659a21e7f8647058;p=thirdparty%2Fbinutils-gdb.git fix up gdb.gdb This fixes the gdb.gdb tests to be parallel-safe, by ensuring that the new "xgdb" file ends up in the standard output directory during the tests. 2013-11-04 Tom Tromey * gdb.gdb/selftest.exp: Use standard_output_file. * lib/selftest-support.exp (do_self_tests): Use standard_output_file. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index dda7d1b6ac3..646bb432d94 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-11-04 Tom Tromey + + * gdb.gdb/selftest.exp: Use standard_output_file. + * lib/selftest-support.exp (do_self_tests): Use + standard_output_file. + 2013-11-04 Tom Tromey * gdb.stabs/weird.exp: Use gdb_remote_download and diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index d700715eef3..3f934cf92ae 100644 --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp @@ -479,11 +479,17 @@ proc test_with_self { executable } { set GDB_FULLPATH [find_gdb $GDB] +if {[is_remote host]} { + set xgdb x$tool +} else { + set xgdb [standard_output_file x$tool] +} + # Remove any old copy lying around. -remote_file host delete x$tool +remote_file host delete $xgdb gdb_start -set file [remote_download host $GDB_FULLPATH x$tool] +set file [remote_download host $GDB_FULLPATH $xgdb] set result [test_with_self $file] gdb_exit catch "remote_file host delete $file" diff --git a/gdb/testsuite/lib/selftest-support.exp b/gdb/testsuite/lib/selftest-support.exp index fc4bccce69c..98a83aa8862 100644 --- a/gdb/testsuite/lib/selftest-support.exp +++ b/gdb/testsuite/lib/selftest-support.exp @@ -129,11 +129,17 @@ proc do_self_tests {function body} { set GDB_FULLPATH [find_gdb $GDB] + if {[is_remote host]} { + set xgdb x$tool + } else { + set xgdb [standard_output_file x$tool] + } + # Remove any old copy lying around. - remote_file host delete x$tool + remote_file host delete $xgdb gdb_start - set file [remote_download host $GDB_FULLPATH x$tool] + set file [remote_download host $GDB_FULLPATH $xgdb] set result [selftest_setup $file $function] if {$result == 0} then {