summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-12 23:06:13 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-12 23:06:13 +0000
commit76474de8834029c4d884d4b7e990ea75ff2e114a (patch)
tree353a3626c6dbb631b840020dd7e5ce707d220fb0 /libgo
parent23b859f6350391cd1d8093441e1fab7d0fb16191 (diff)
downloadgcc-76474de8834029c4d884d4b7e990ea75ff2e114a.tar.gz
Use correct nm and nm options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168730 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/testsuite/gotest4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index e8c0847a801..7c4bc4af8d4 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -19,6 +19,8 @@ GL=${GL:-${GC-gccgo}}
GOLIBS=
export GC GL GOLIBS
+NM=${NM:-nm}
+
# srcdir is where the source files are found. basedir is where the
# source file paths are relative to.
# gofiles are the test files. pkgfiles are the source files.
@@ -272,7 +274,7 @@ fi
# the grep -v eliminates methods and other special names
# that have multiple dots.
pattern='Test([^a-z].*)?'
- tests=$(nm -s _gotest_.o $xofile | egrep ' T .*\.'$pattern'$' | grep -v '\..*\..*\.' | sed 's/.* //' | sed 's/.*\.\(.*\.\)/\1/')
+ tests=$($NM -p _gotest_.o $xofile | egrep ' T .*\.'$pattern'$' | grep -v '\..*\..*\.' | sed 's/.* //' | sed 's/.*\.\(.*\.\)/\1/')
if [ "x$tests" = x ]; then
echo 'gotest: warning: no tests matching '$pattern in _gotest_.o $xofile 1>&2
exit 2