Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
134d6e4f
Commit
134d6e4f
authored
Oct 28, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/build: avoid os.Error in tests
R=golang-dev, adg CC=golang-dev
https://golang.org/cl/5308061
parent
2b0c49f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
build_test.go
src/pkg/go/build/build_test.go
+1
-1
pkgtest.go
src/pkg/go/build/pkgtest/pkgtest.go
+2
-2
No files found.
src/pkg/go/build/build_test.go
View file @
134d6e4f
...
...
@@ -28,7 +28,7 @@ var buildPkgs = []struct {
GoFiles
:
[]
string
{
"pkgtest.go"
},
SFiles
:
[]
string
{
"sqrt_"
+
runtime
.
GOARCH
+
".s"
},
Package
:
"pkgtest"
,
Imports
:
[]
string
{
"
o
s"
},
Imports
:
[]
string
{
"
byte
s"
},
TestImports
:
[]
string
{
"fmt"
,
"pkgtest"
},
TestGoFiles
:
sortstr
([]
string
{
"sqrt_test.go"
,
"sqrt_"
+
runtime
.
GOARCH
+
"_test.go"
}),
XTestGoFiles
:
[]
string
{
"xsqrt_test.go"
},
...
...
src/pkg/go/build/pkgtest/pkgtest.go
View file @
134d6e4f
...
...
@@ -4,9 +4,9 @@
package
pkgtest
import
"
o
s"
import
"
byte
s"
func
Foo
()
os
.
Erro
r
{
func
Foo
()
*
bytes
.
Buffe
r
{
return
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment