projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
786a183
)
Copy env.go from master Go testsuite.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 30 Mar 2011 21:27:37 +0000
(21:27 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 30 Mar 2011 21:27:37 +0000
(21:27 +0000)
From-SVN: r171752
gcc/testsuite/go.test/test/env.go
patch
|
blob
|
history
diff --git
a/gcc/testsuite/go.test/test/env.go
b/gcc/testsuite/go.test/test/env.go
index 16b2076447f4e0f6c89549166a10baf63385ff2e..28113bcb0622e0efae11e4cd3bbb48909d08674e 100644
(file)
--- 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")