]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix go test using package main_test
authorRuss Cox <rsc@golang.org>
Tue, 10 Sep 2013 18:43:35 +0000 (14:43 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 10 Sep 2013 18:43:35 +0000 (14:43 -0400)
commit627d17cf2980c97b76badf7893cfc2c4b1289738
tree54a4344d925657fd376090db2f1dc5a7274cec69
parent90f91928866a602df045b6c44f58a6f2f741bbf0
cmd/go: fix go test using package main_test

A package main binary (that is, a command) being installed
does not mean we can skip the build of the package archive
during a test.

Fixes #3417.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13462046
src/cmd/go/test.bash
src/cmd/go/test.go
src/cmd/go/testdata/src/main_test/m.go [new file with mode: 0644]
src/cmd/go/testdata/src/main_test/m_test.go [new file with mode: 0644]