summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-10 00:51:14 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-10 00:51:14 +0000
commit6b88a9521e784b39397b1c73994066b3024b6fd8 (patch)
tree7d06ad33430b7b8f058d6c59482d1b318b9e01aa /libgo
parentb87467eb0caefc7a96494e615262e45f500adfed (diff)
downloadgcc-6b88a9521e784b39397b1c73994066b3024b6fd8.tar.gz
PR go/48020
gotest: Pass -v to nm to avoid sorting on Solaris. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170842 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 7c4bc4af8d4..28aba6e2dd8 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -274,7 +274,9 @@ fi
# the grep -v eliminates methods and other special names
# that have multiple dots.
pattern='Test([^a-z].*)?'
- tests=$($NM -p _gotest_.o $xofile | egrep ' T .*\.'$pattern'$' | grep -v '\..*\..*\.' | sed 's/.* //' | sed 's/.*\.\(.*\.\)/\1/')
+ # The -p option tells GNU nm not to sort.
+ # The -v option tells Solaris nm to sort by value.
+ tests=$($NM -p -v _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