From: Alex Brainman Date: Thu, 20 Feb 2014 00:29:37 +0000 (+1100) Subject: cmd/pack: provide executable name in TestHello X-Git-Tag: go1.3beta1~643 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0d11cd1b6ecede754c3bf24c87a955d175568093;p=gostls13.git cmd/pack: provide executable name in TestHello otherwise go build command adds .exe suffix Fixes #7362 LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/66250043 --- diff --git a/src/cmd/pack/pack_test.go b/src/cmd/pack/pack_test.go index dc42b707ac..b54b0ae432 100644 --- a/src/cmd/pack/pack_test.go +++ b/src/cmd/pack/pack_test.go @@ -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")