From 92c8df46c6f398930ba598b1a2eb1248e739cc0b Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Sat, 14 Jan 2012 06:40:55 +0900 Subject: src: make use of runtime.GOOS, GOARCH instead of syscall.OS, ARCH R=rsc, r CC=golang-dev https://golang.org/cl/5545048 --- src/pkg/debug/gosym/pclntab_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/debug') 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 { -- cgit v1.3