]> Cypherpunks repositories - gostls13.git/commitdiff
test: remove unused variable
authorKeith Randall <khr@golang.org>
Tue, 16 Aug 2016 20:52:51 +0000 (13:52 -0700)
committerKeith Randall <khr@golang.org>
Tue, 16 Aug 2016 21:46:54 +0000 (21:46 +0000)
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>

test/run.go

index a1ab9d5bec07ff413a8e879df140d4948868d920..19210b4ff1b9a770b2a8a31b44e296306ae11e05 100644 (file)
@@ -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")