diff options
author | Russ Cox <rsc@golang.org> | 2011-10-27 19:39:40 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-10-27 19:39:40 -0700 |
commit | 134d6e4fc4b6ef31f292f2f69c3af8f94dd9f987 (patch) | |
tree | efcc8492da38a9001f858089b257bdf7a048de8d | |
parent | 2b0c49f2e56df2b739981ae3e6069f74a776297c (diff) | |
download | go-134d6e4fc4b6ef31f292f2f69c3af8f94dd9f987.tar.gz go-134d6e4fc4b6ef31f292f2f69c3af8f94dd9f987.zip |
go/build: avoid os.Error in tests
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308061
-rw-r--r-- | src/pkg/go/build/build_test.go | 2 | ||||
-rw-r--r-- | src/pkg/go/build/pkgtest/pkgtest.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/go/build/build_test.go b/src/pkg/go/build/build_test.go index 68a4180c90..398e31ce26 100644 --- a/src/pkg/go/build/build_test.go +++ b/src/pkg/go/build/build_test.go @@ -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"}, diff --git a/src/pkg/go/build/pkgtest/pkgtest.go b/src/pkg/go/build/pkgtest/pkgtest.go index 03ebb9893a..08eea1e2bc 100644 --- a/src/pkg/go/build/pkgtest/pkgtest.go +++ b/src/pkg/go/build/pkgtest/pkgtest.go @@ -4,9 +4,9 @@ package pkgtest -import "os" +import "bytes" -func Foo() os.Error { +func Foo() *bytes.Buffer { return nil } |