diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2014-02-20 11:29:37 +1100 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2014-02-20 11:29:37 +1100 |
commit | 0d11cd1b6ecede754c3bf24c87a955d175568093 (patch) | |
tree | 0b80bda51149c3d664fe29fd28af5acb86b7a4fc /src/cmd/pack | |
parent | 00b76713a7ba9182e9dfc29dcc37e94d000703b8 (diff) | |
download | go-0d11cd1b6ecede754c3bf24c87a955d175568093.tar.gz go-0d11cd1b6ecede754c3bf24c87a955d175568093.zip |
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
Diffstat (limited to 'src/cmd/pack')
-rw-r--r-- | src/cmd/pack/pack_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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") |