From d46efcfe977c4ccde0f70bf9bce3500ac740745b Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor <ian@gcc.gnu.org>
Date: Wed, 2 Feb 2011 15:50:16 +0000
Subject: [PATCH] libgo.exp: Set tmpdir.

From-SVN: r169529
---
 libgo/testsuite/lib/libgo.exp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libgo/testsuite/lib/libgo.exp b/libgo/testsuite/lib/libgo.exp
index 29764d924468..a6d44323d3e6 100644
--- a/libgo/testsuite/lib/libgo.exp
+++ b/libgo/testsuite/lib/libgo.exp
@@ -21,6 +21,10 @@ if {$gccdir != ""} {
 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
 }
-- 
GitLab