summaryrefslogtreecommitdiffstats
path: root/libgo/testsuite/gotest
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/testsuite/gotest')
-rwxr-xr-xlibgo/testsuite/gotest7
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index 28aba6e2dd8..93db3462e8a 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -131,6 +131,13 @@ esac
# so that the tests do not have to refer to srcdir to find test data.
ln -s $srcdir/* .
+# Some tests refer to a ../testdata directory.
+if test -e $srcdir/../testdata; then
+ rm -f ../testdata
+ abssrcdir=`cd $srcdir && pwd`
+ ln -s $abssrcdir/../testdata ../testdata
+fi
+
# Copy the .go files because io/utils_test.go expects a regular file.
case "x$gofiles" in
x)
OpenPOWER on IntegriCloud