From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8732 invoked by alias); 23 Aug 2013 20:36:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8691 invoked by uid 89); 23 Aug 2013 20:36:58 -0000 X-Spam-SWARE-Status: No, score=-7.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 23 Aug 2013 20:36:57 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r7NKauTR003994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 23 Aug 2013 16:36:56 -0400 Received: from barimba.redhat.com (ovpn-113-142.phx2.redhat.com [10.3.113.142]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r7NKarxR017513; Fri, 23 Aug 2013 16:36:55 -0400 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 04/13] fix up gdb.gdb Date: Fri, 23 Aug 2013 20:36:00 -0000 Message-Id: <1377290210-483-5-git-send-email-tromey@redhat.com> In-Reply-To: <1377290210-483-1-git-send-email-tromey@redhat.com> References: <1377290210-483-1-git-send-email-tromey@redhat.com> X-SW-Source: 2013-08/txt/msg00697.txt.bz2 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. * gdb.gdb/selftest.exp: Use standard_output_file. * lib/selftest-support.exp (do_self_tests): Use standard_output_file. --- gdb/testsuite/gdb.gdb/selftest.exp | 10 ++++++++-- gdb/testsuite/lib/selftest-support.exp | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index d700715..3f934cf 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 fc4bccc..98a83aa 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 { -- 1.8.1.4