]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: don't put mycmd in wrong directory
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 16 Jul 2015 06:41:34 +0000 (15:41 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 17 Jul 2015 01:28:16 +0000 (01:28 +0000)
Change-Id: Ia7cc1d52211b32a2eb2b3888d621b28d6932aca9
Reviewed-on: https://go-review.googlesource.com/12290
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go

index 67f2534c7f7f5421e42f3aa0076e3986e53e2000..804901cb5a89e36b85671e6d90a74be0e2a22c36 100644 (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")