aboutsummaryrefslogtreecommitdiff
path: root/libgo/testsuite/gotest
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/testsuite/gotest')
-rwxr-xr-xlibgo/testsuite/gotest5
1 files changed, 2 insertions, 3 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest
index f1309aba39a..0b2e572a905 100755
--- a/libgo/testsuite/gotest
+++ b/libgo/testsuite/gotest
@@ -518,10 +518,9 @@ symtogo() {
local ndots=""
for tp in $*
do
- s=$(echo $tp | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//')
+ s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//')
# screen out methods (X.Y.Z)
- ndots=$(echo $s | sed -e 's/\./ /g' | wc -w)
- if [ $ndots -ne 2 ]; then
+ if ! expr "$s" : '^[^.]*\.[^.]*$' >/dev/null 2>&1; then
continue
fi
if [ -z "${result}" ]; then