Hi All,
     I tried to run "go test -timeout 30s -run ^TestMemStats$" in the 
source directory runtime. But failed with error infomation below:
"error.go:7:8: use of internal package internal/bytealg not allowed
alg.go:8:2: use of internal package internal/cpu not allowed
atomic_pointer.go:8:2: use of internal package runtime/internal/atomic not 
allowed
chan.go:22:2: use of internal package runtime/internal/math not allowed
alg.go:9:2: use of internal package runtime/internal/sys not allowed"

My ENV listed below
```
runtime git:(a7acf9af07) ✗ pwd
/Users/byc/go/src/go/src/runtime
➜  runtime git:(a7acf9af07) ✗ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/byc/Library/Caches/go-build"
GOENV="/Users/byc/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/byc/.gvm/pkgsets/go1.13.8/global"
GOPRIVATE=""
GOPROXY="https://mirrors.aliyun.com/goproxy/,direct";
GOROOT="/Users/byc/.gvm/gos/go1.13.8"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/byc/.gvm/gos/go1.13.8/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/byc/go/src/go/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments 
-fmessage-length=0 
-fdebug-prefix-map=/var/folders/vd/rxp_88ls0vx5_s23q8v7xyg80000gn/T/go-build370571100=/tmp/go-build
 
-gno-record-gcc-switches -fno-common".
    Who can tell me how to run the test correctly?
```

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6655877c-f36e-447d-aded-d8bb6d2b7035n%40googlegroups.com.

Reply via email to