aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-03-30 21:27:37 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-03-30 21:27:37 +0000
commit372776deba3c3ae4b563856f7ba2411eadec91a8 (patch)
treea545b7a65c77564150be80411522391ae8494e7c /gcc
parent786a183b1559bec8316eb8f44a7f85c7f87ac3c0 (diff)
downloadgcc-372776deba3c3ae4b563856f7ba2411eadec91a8.zip
gcc-372776deba3c3ae4b563856f7ba2411eadec91a8.tar.gz
gcc-372776deba3c3ae4b563856f7ba2411eadec91a8.tar.bz2
Copy env.go from master Go testsuite.
From-SVN: r171752
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/go.test/test/env.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/testsuite/go.test/test/env.go b/gcc/testsuite/go.test/test/env.go
index 16b2076..28113bc 100644
--- a/gcc/testsuite/go.test/test/env.go
+++ b/gcc/testsuite/go.test/test/env.go
@@ -6,7 +6,10 @@
package main
-import os "os"
+import (
+ "os"
+ "runtime"
+)
func main() {
ga, e0 := os.Getenverror("GOARCH")
@@ -14,8 +17,8 @@ func main() {
print("$GOARCH: ", e0.String(), "\n")
os.Exit(1)
}
- if ga != "amd64" && ga != "386" && ga != "arm" {
- print("$GOARCH=", ga, "\n")
+ if ga != runtime.GOARCH {
+ print("$GOARCH=", ga, "!= runtime.GOARCH=", runtime.GOARCH, "\n")
os.Exit(1)
}
xxx, e1 := os.Getenverror("DOES_NOT_EXIST")