From: Rob Pike Date: Tue, 5 Apr 2011 20:51:49 +0000 (-0700) Subject: gotest: fix windows build. X-Git-Tag: weekly.2011-04-13~95 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=63e28ae4ab274d2ce3056e5adf76a2027e453ca7;p=gostls13.git gotest: fix windows build. R=rsc CC=golang-dev https://golang.org/cl/4339055 --- diff --git a/src/cmd/gotest/gotest.go b/src/cmd/gotest/gotest.go index 5af82dec3c..210798c63f 100644 --- a/src/cmd/gotest/gotest.go +++ b/src/cmd/gotest/gotest.go @@ -267,7 +267,7 @@ func doRun(argv []string, returnStdout bool) string { argv = []string{"cmd", "/c", "sh", "-c", cmd} } var err os.Error - argv[0], err = exec.LookPath(command) + argv[0], err = exec.LookPath(argv[0]) if err != nil { Fatalf("can't find %s: %s", command, err) }