diff options
| author | Mikio Hara <mikioh.mikioh@gmail.com> | 2012-01-14 06:40:55 +0900 |
|---|---|---|
| committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2012-01-14 06:40:55 +0900 |
| commit | 92c8df46c6f398930ba598b1a2eb1248e739cc0b (patch) | |
| tree | 7ebd00b70ee7be3ac820f0f77dabc913a05c900e /src/pkg/debug | |
| parent | 5f7337769c4a09c34d32ca29ffdeb5c5c19aca41 (diff) | |
| download | go-92c8df46c6f398930ba598b1a2eb1248e739cc0b.tar.xz | |
src: make use of runtime.GOOS, GOARCH instead of syscall.OS, ARCH
R=rsc, r
CC=golang-dev
https://golang.org/cl/5545048
Diffstat (limited to 'src/pkg/debug')
| -rw-r--r-- | src/pkg/debug/gosym/pclntab_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/debug/gosym/pclntab_test.go b/src/pkg/debug/gosym/pclntab_test.go index e5c29889b7..b90181bdc6 100644 --- a/src/pkg/debug/gosym/pclntab_test.go +++ b/src/pkg/debug/gosym/pclntab_test.go @@ -7,14 +7,14 @@ package gosym import ( "debug/elf" "os" - "syscall" + "runtime" "testing" ) func dotest() bool { // For now, only works on ELF platforms. // TODO: convert to work with new go tool - return false && syscall.OS == "linux" && os.Getenv("GOARCH") == "amd64" + return false && runtime.GOOS == "linux" && runtime.GOARCH == "amd64" } func getTable(t *testing.T) *Table { |
