From 0d11cd1b6ecede754c3bf24c87a955d175568093 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Thu, 20 Feb 2014 11:29:37 +1100 Subject: [PATCH] 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 --- src/cmd/pack/pack_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.48.1