aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pack
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2014-02-20 11:29:37 +1100
committerAlex Brainman <alex.brainman@gmail.com>2014-02-20 11:29:37 +1100
commit0d11cd1b6ecede754c3bf24c87a955d175568093 (patch)
tree0b80bda51149c3d664fe29fd28af5acb86b7a4fc /src/cmd/pack
parent00b76713a7ba9182e9dfc29dcc37e94d000703b8 (diff)
downloadgo-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.go2
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")