Commit 134d6e4f authored by Russ Cox's avatar Russ Cox

go/build: avoid os.Error in tests

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308061
parent 2b0c49f2
......@@ -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"},
......
......@@ -4,9 +4,9 @@
package pkgtest
import "os"
import "bytes"
func Foo() os.Error {
func Foo() *bytes.Buffer {
return nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment