]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/pack: provide executable name in TestHello
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 20 Feb 2014 00:29:37 +0000 (11:29 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 20 Feb 2014 00:29:37 +0000 (11:29 +1100)
otherwise go build command adds .exe suffix

Fixes #7362

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/66250043

src/cmd/pack/pack_test.go

index dc42b707accc87ecb41fbfdf5a8e8d7221811e60..b54b0ae432e7c3a6b9422d477d3e929d9962e8ce 100644 (file)
@@ -202,7 +202,7 @@ func TestHello(t *testing.T) {
                t.Fatal("cannot find GOCHAR in 'go env' output:\n", out)
        }
        char := fields[1]
-       run("go", "build", "cmd/pack") // writes pack binary to dir
+       run("go", "build", "-o", "pack", "cmd/pack") // writes pack binary to dir
        run("go", "tool", char+"g", "hello.go")
        run("./pack", "grc", "hello.a", "hello."+char)
        run("go", "tool", char+"l", "-o", "a.out", "hello.a")