mirror of
https://github.com/golang/go
synced 2024-11-11 19:21:37 -07:00
test: remove unused variable
ssaMain is no longer needed. Change-Id: I0b77f0bcd482329d73018bd80a6e068e622e191b Reviewed-on: https://go-review.googlesource.com/27190 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
5ae8230769
commit
a16a189fb9
@ -531,7 +531,6 @@ func (t *test) run() {
|
||||
}
|
||||
|
||||
useTmp := true
|
||||
ssaMain := false
|
||||
runcmd := func(args ...string) ([]byte, error) {
|
||||
cmd := exec.Command(args[0], args[1:]...)
|
||||
var buf bytes.Buffer
|
||||
@ -543,9 +542,6 @@ func (t *test) run() {
|
||||
} else {
|
||||
cmd.Env = os.Environ()
|
||||
}
|
||||
if ssaMain && os.Getenv("GOARCH") == "amd64" {
|
||||
cmd.Env = append(cmd.Env, "GOSSAPKG=main")
|
||||
}
|
||||
err := cmd.Run()
|
||||
if err != nil {
|
||||
err = fmt.Errorf("%s\n%s", err, buf.Bytes())
|
||||
@ -680,7 +676,6 @@ func (t *test) run() {
|
||||
|
||||
case "run":
|
||||
useTmp = false
|
||||
ssaMain = true
|
||||
cmd := []string{"go", "run"}
|
||||
if *linkshared {
|
||||
cmd = append(cmd, "-linkshared")
|
||||
@ -716,7 +711,6 @@ func (t *test) run() {
|
||||
t.err = fmt.Errorf("write tempfile:%s", err)
|
||||
return
|
||||
}
|
||||
ssaMain = true
|
||||
cmd = []string{"go", "run"}
|
||||
if *linkshared {
|
||||
cmd = append(cmd, "-linkshared")
|
||||
|
Loading…
Reference in New Issue
Block a user