aboutsummaryrefslogtreecommitdiff
path: root/libgo/testsuite
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-02-02 15:40:14 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-02-02 15:40:14 +0000
commit10f92c9c3f007bbb1a41d5a9733a6d470db9bf43 (patch)
tree0dc61810c5e7770c6081ce424c1d4adcad0421df /libgo/testsuite
parent7ebe663e98c59128f4d94944bf91b55f514fbc4b (diff)
downloadgcc-10f92c9c3f007bbb1a41d5a9733a6d470db9bf43.zip
gcc-10f92c9c3f007bbb1a41d5a9733a6d470db9bf43.tar.gz
gcc-10f92c9c3f007bbb1a41d5a9733a6d470db9bf43.tar.bz2
re PR go/56171 (syscall FAILs on Solaris)
PR go/56171 syscall: Only run creds_test on GNU/Linux. From-SVN: r195686
Diffstat (limited to 'libgo/testsuite')
-rwxr-xr-xlibgo/testsuite/gotest9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index bbe77cc..4015ed1 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -259,12 +259,20 @@ mkdir _test
case "x$gofiles" in
x)
gofiles=`ls *_test.go 2>/dev/null`
+ ;;
+*)
+ xgofiles=$gofiles
+ gofiles=
+ for f in $xgofiles; do
+ gofiles="$gofiles `basename $f`"
+ done
esac
case "x$gofiles" in
x)
echo 'no test files found' 1>&2
exit 1
+ ;;
esac
# Run any commands given in sources, like
@@ -295,6 +303,7 @@ esac
# Split $gofiles into external gofiles (those in *_test packages)
# and internal ones (those in the main package).
+xgofiles=
for f in $gofiles; do
package=`grep '^package[ ]' $f | sed 1q`
case "$package" in