go/build: avoid os.Error in tests

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308061
This commit is contained in:
Russ Cox 2011-10-27 19:39:40 -07:00
parent 2b0c49f2e5
commit 134d6e4fc4
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ var buildPkgs = []struct {
GoFiles: []string{"pkgtest.go"},
SFiles: []string{"sqrt_" + runtime.GOARCH + ".s"},
Package: "pkgtest",
Imports: []string{"os"},
Imports: []string{"bytes"},
TestImports: []string{"fmt", "pkgtest"},
TestGoFiles: sortstr([]string{"sqrt_test.go", "sqrt_" + runtime.GOARCH + "_test.go"}),
XTestGoFiles: []string{"xsqrt_test.go"},

View file

@ -4,9 +4,9 @@
package pkgtest
import "os"
import "bytes"
func Foo() os.Error {
func Foo() *bytes.Buffer {
return nil
}