Commit a16a189f authored by Keith Randall's avatar Keith Randall

test: remove unused variable

ssaMain is no longer needed.

Change-Id: I0b77f0bcd482329d73018bd80a6e068e622e191b
Reviewed-on: https://go-review.googlesource.com/27190Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 5ae82307
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment