Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@redhat.com>
Subject: [PATCH v2 2/4] add standard_temp_file
Date: Fri, 02 Aug 2013 15:36:00 -0000	[thread overview]
Message-ID: <1375457773-863-3-git-send-email-tromey@redhat.com> (raw)
In-Reply-To: <1375457773-863-1-git-send-email-tromey@redhat.com>

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


  parent reply	other threads:[~2013-08-02 15:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02 15:36 [PATCH v2 0/4] introduce test suite "parallel" mode Tom Tromey
2013-08-02 15:36 ` [PATCH v2 1/4] more uses of standard_output_file Tom Tromey
2013-08-02 15:36 ` Tom Tromey [this message]
2013-08-02 15:36 ` [PATCH v2 4/4] introduce parallel mode Tom Tromey
2013-08-02 18:01   ` Eli Zaretskii
2013-08-02 18:37     ` Tom Tromey
2013-08-02 18:44       ` Eli Zaretskii
2013-08-02 18:48         ` Tom Tromey
2013-08-02 19:17           ` Eli Zaretskii
2013-08-02 19:19             ` Tom Tromey
2013-08-02 19:38               ` Eli Zaretskii
2013-08-02 15:36 ` [PATCH v2 3/4] add caching procs to test suite Tom Tromey
2013-08-02 15:53   ` Pedro Alves
2013-08-02 16:48     ` Tom Tromey
2013-08-02 17:23       ` Pedro Alves
2013-08-02 20:15         ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1375457773-863-3-git-send-email-tromey@redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox