mirror of
https://github.com/golang/go
synced 2024-11-20 03:04:40 -07:00
go/build: avoid os.Error in tests
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5308061
This commit is contained in:
parent
2b0c49f2e5
commit
134d6e4fc4
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user