aboutsummaryrefslogtreecommitdiff
path: root/test/sinit_run.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-05-21 13:28:17 -0400
committerRuss Cox <rsc@golang.org>2015-05-21 17:32:17 +0000
commitcf932cd897a3eaf3aa6fec3ba5d0ab1d9107eebb (patch)
tree5cf3a6e5f2c2960c0766c27e38e30095c485c5e4 /test/sinit_run.go
parent0f4132c907d9749a1a41a20af7856065ee10de9e (diff)
downloadgo-cf932cd897a3eaf3aa6fec3ba5d0ab1d9107eebb.tar.gz
go-cf932cd897a3eaf3aa6fec3ba5d0ab1d9107eebb.zip
all: retire architecture letter in file names, public API
This CL removes the remaining visible uses of the "architecture letter" concept. (They are no longer in tool names nor in source directory names.) Because the architecture letter concept is now gone, delete GOCHAR from "go env" output, and change go/build.ArchChar to return an error always. The architecture letter is still used in the compiler and linker sources as a clumsy architecture enumeration, but that use is not visible to Go users and can be cleaned up separately. Change-Id: I4d97a38f372003fb610c9c5241bea440d9dbeb8d Reviewed-on: https://go-review.googlesource.com/10289 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'test/sinit_run.go')
-rw-r--r--test/sinit_run.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/sinit_run.go b/test/sinit_run.go
index cc437bfacf..c9afd3b777 100644
--- a/test/sinit_run.go
+++ b/test/sinit_run.go
@@ -12,18 +12,11 @@ package main
import (
"bytes"
"fmt"
- "go/build"
"os"
"os/exec"
)
func main() {
- letter, err := build.ArchChar(build.Default.GOARCH)
- if err != nil {
- fmt.Println(err)
- os.Exit(1)
- }
-
cmd := exec.Command("go", "tool", "compile", "-S", "sinit.go")
out, err := cmd.CombinedOutput()
if err != nil {
@@ -31,7 +24,7 @@ func main() {
fmt.Println(err)
os.Exit(1)
}
- os.Remove("sinit." + letter)
+ os.Remove("sinit.o")
if bytes.Contains(out, []byte("initdone")) {
fmt.Println("sinit generated an init function")