public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  tromey/fully-parallelize-test-suite: a couple more standard_temp_file calls
@ 2013-08-14 13:26 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2013-08-14 13:26 UTC (permalink / raw)
  To: archer-commits

The branch, tromey/fully-parallelize-test-suite has been updated
       via  2dc906cb9d153d7d5f21719003eb3364787a6fa1 (commit)
       via  cd07b083cd4ae81835343eab33c50ffd4421edf8 (commit)
      from  a4710630e77a6c1a1f495b7671274aa3b542a06d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 2dc906cb9d153d7d5f21719003eb3364787a6fa1
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Aug 13 11:57:39 2013 -0600

    a couple more standard_temp_file calls

commit cd07b083cd4ae81835343eab33c50ffd4421edf8
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Aug 13 11:51:04 2013 -0600

    fix up gdb_remote_download

-----------------------------------------------------------------------

Summary of changes:
 gdb/testsuite/lib/cell.exp |    8 ++++----
 gdb/testsuite/lib/gdb.exp  |   14 +++++---------
 2 files changed, 9 insertions(+), 13 deletions(-)

First 500 lines of diff:
diff --git a/gdb/testsuite/lib/cell.exp b/gdb/testsuite/lib/cell.exp
index 9a20f5c..448bd0a 100644
--- a/gdb/testsuite/lib/cell.exp
+++ b/gdb/testsuite/lib/cell.exp
@@ -78,10 +78,10 @@ gdb_caching_proc skip_cell_tests {
     # Set up, compile, and execute a combined Cell/B.E. test program.
     # Include the current process ID in the file names to prevent conflicts
     # with invocations for multiple testsuites.
-    set src cell[pid].c
-    set exe cell[pid].x
-    set src_spu cell[pid]-spu.c
-    set exe_spu cell[pid]-spu.x
+    set src [standard_temp_file cell[pid].c]
+    set exe [standard_temp_file cell[pid].x]
+    set src_spu [standard_temp_file cell[pid]-spu.c]
+    set exe_spu [standard_temp_file cell[pid]-spu.x]
 
     set f [open $src "w"]
     puts $f "#include <libspe2.h>"
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index fadbb4a..32602d3 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3263,19 +3263,15 @@ proc gdb_touch_execfile { binfile } {
     }
 }
 
-# Like remote_download but provides two gdb-specific behaviors.
-# First, if TOFILE is not specified, then the [file tail] of FROMFILE
-# is passed through standard_output_file to compute the destination.
-# Second, if TOFILE has a directory component, it is first created on
-# the appropriate machine.
+# Like remote_download but provides a gdb-specific behavior.  If DEST
+# is "host", and the host is not remote, and TOFILE is not specified,
+# then the [file tail] of FROMFILE is passed through
+# standard_output_file to compute the destination.
 
 proc gdb_remote_download {dest fromfile {tofile {}}} {
-    if {$tofile == ""} {
+    if {$dest == "host" && ![is_remote host] && $tofile == ""} {
 	set tofile [standard_output_file [file tail $fromfile]]
     }
-    if {[file dirname $tofile] != "."} {
-	remote_exec $dest mkdir [file dirname $tofile]
-    }
     return [remote_download $dest $fromfile $tofile]
 }
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-14 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 13:26 [SCM] tromey/fully-parallelize-test-suite: a couple more standard_temp_file calls tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).