Skip to content

Commit

Permalink
cmd/pack: provide executable name in TestHello
Browse files Browse the repository at this point in the history
otherwise go build command adds .exe suffix

Fixes #7362

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/66250043
  • Loading branch information
alexbrainman committed Feb 20, 2014
1 parent 00b7671 commit 0d11cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/pack/pack_test.go
Expand Up @@ -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")
Expand Down

0 comments on commit 0d11cd1

Please sign in to comment.