From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23193 invoked by alias); 2 Aug 2013 15:36:27 -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 23087 invoked by uid 89); 2 Aug 2013 15:36:27 -0000 X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 02 Aug 2013 15:36:26 +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 r72FaJLu031551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Aug 2013 11:36:19 -0400 Received: from barimba.redhat.com (ovpn-113-128.phx2.redhat.com [10.3.113.128]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r72FaHds021617; Fri, 2 Aug 2013 11:36:19 -0400 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v2 2/4] add standard_temp_file Date: Fri, 02 Aug 2013 15:36:00 -0000 Message-Id: <1375457773-863-3-git-send-email-tromey@redhat.com> In-Reply-To: <1375457773-863-1-git-send-email-tromey@redhat.com> References: <1375457773-863-1-git-send-email-tromey@redhat.com> X-SW-Source: 2013-08/txt/msg00078.txt.bz2 This adds a new helper proc, standard_temp_file. This proc takes a file name and returns a possibly-qualified form. This lets us make parallel runs use a directory other than ".", which helps the inotify mode. This initial patch just introduces the proc. * lib/gdb.exp (standard_temp_file): New proc. --- gdb/testsuite/lib/gdb.exp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index b89c9cd..3117190 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3401,6 +3401,12 @@ proc standard_output_file {basename} { return [file join $objdir $subdir $basename] } +# Return the name of a file in our standard temporary directory. + +proc standard_temp_file {basename} { + return $basename +} + # Set 'testfile', 'srcfile', and 'binfile'. # # ARGS is a list of source file specifications. -- 1.8.1.4