summaryrefslogtreecommitdiff
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
commit74b27a50ee32eceebeeed09314e2288fc7349d85 (patch)
tree28dac5b50c251f5566b532be285021a77ca0ac51 /src/cmd/pack
parent2eb9a1090a2e8ec5739ec4618c063e669a85370c (diff)
downloadgo-74b27a50ee32eceebeeed09314e2288fc7349d85.tar.gz
cmd/pack: provide executable name in TestHello
otherwise go build command adds .exe suffix Fixes issue 7362 LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/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 dc42b707a..b54b0ae43 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")