cmd/go: don't put mycmd in wrong directory

Change-Id: Ia7cc1d52211b32a2eb2b3888d621b28d6932aca9
Reviewed-on: https://go-review.googlesource.com/12290
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Mikio Hara 2015-07-16 15:41:34 +09:00
parent 9f70cd8223
commit 29ffa4bd92
1 changed files with 1 additions and 0 deletions

View File

@ -751,6 +751,7 @@ func TestGoInstallErrorOnCrossCompileToBin(t *testing.T) {
tg.tempFile("src/mycmd/x.go", `package main
func main() {}`)
tg.setenv("GOPATH", tg.path("."))
tg.cd(tg.path("src/mycmd"))
tg.run("build", "mycmd")