Patchwork libgo patch committed: Set tmpdir in libgo.exp

login
register
mail settings
Submitter Ian Taylor
Date Feb. 2, 2011, 3:50 p.m.
Message ID <mcrr5bqh1vo.fsf@google.com>
Download mbox | patch
Permalink /patch/81467/
State New
Headers show

Comments

Ian Taylor - Feb. 2, 2011, 3:50 p.m.
This libgo patch sets tmpdir when running the DejaGNU testsuite, to
avoid using /tmp which can cause collisions when running the testsuite
for multiple targets simultaneously.  Bootstrapped on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

Patch

diff -r 4994e870dd88 libgo/testsuite/lib/libgo.exp
--- a/libgo/testsuite/lib/libgo.exp	Tue Feb 01 13:19:19 2011 -0800
+++ b/libgo/testsuite/lib/libgo.exp	Wed Feb 02 07:40:46 2011 -0800
@@ -21,6 +21,10 @@ 
 set GOC_UNDER_TEST "$gccdir/gccgo -B$gccdir/"
 set TESTING_IN_BUILD_TREE 1
 
+if [info exists GOTEST_TMPDIR] {
+    set tmpdir $GOTEST_TMPDIR
+}
+
 proc go_maybe_build_wrapper { args } {
     libgo_maybe_build_wrapper $args
 }