diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-01-22 15:52:23 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-01-22 20:53:43 -0800 |
commit | 92bea423c295f5c6c9b0cf06a5a555011cc98bdc (patch) | |
tree | b0aed4893cba2bf11072a1c77251a2ff4aac2c16 /libgo | |
parent | 591b59ebfcd48319452ebbd954267c9a05ba4b78 (diff) |
gotest: explicitly skip type descriptors
Type descriptors are normally weak and nm will report them as V,
so we will skip them when collecting the list of symbols.
But when not using GNU nm, they may be reported as D,
so also skip them in symstogo.
This fixes go/doc/check on Solaris.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/215900
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/testsuite/gotest | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index de4a392b8cd..33f99d77a31 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -517,6 +517,11 @@ symtogo() { if expr "$tp" : '^\.' >/dev/null 2>&1; then continue fi + # Skip type descriptors. These are normally skipped because they + # are weak symbols, but if not using GNU nm we may see them here. + if expr "$tp" : '^type\.\.' >/dev/null 2>&1; then + continue + fi s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//') # Screen out methods (X.Y.Z). if ! expr "$s" : '^[^.]*\.[^.]*$' >/dev/null 2>&1; then |