diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2012-02-11 08:47:19 +1100 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2012-02-11 08:47:19 +1100 |
| commit | fbab6d8512c876dcef65e85f7a400117bc1f08f3 (patch) | |
| tree | 9b46828071232e159be860d21cb2fe72c1836060 /src/pkg/os/exec/exec_test.go | |
| parent | 09f6a491947373107e1425eae1187d573e398492 (diff) | |
| download | go-fbab6d8512c876dcef65e85f7a400117bc1f08f3.tar.xz | |
os,syscall: fix windows build
make syscall.ProcAttr.Files be []uintptr
all.bash passes on Linux.
things seem to compile on GOOS={darwin,windows}
R=golang-dev, mattn.jp, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/5653055
Diffstat (limited to 'src/pkg/os/exec/exec_test.go')
| -rw-r--r-- | src/pkg/os/exec/exec_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pkg/os/exec/exec_test.go b/src/pkg/os/exec/exec_test.go index 2e4bef5119..52f4bce3ae 100644 --- a/src/pkg/os/exec/exec_test.go +++ b/src/pkg/os/exec/exec_test.go @@ -17,7 +17,6 @@ import ( "runtime" "strconv" "strings" - "syscall" "testing" ) @@ -153,8 +152,8 @@ func TestExtraFiles(t *testing.T) { // Ensure that file descriptors have not already been leaked into // our environment. - for fd := int(os.Stderr.Fd()) + 1; fd <= 101; fd++ { - err := syscall.Close(fd) + for fd := os.Stderr.Fd() + 1; fd <= 101; fd++ { + err := os.NewFile(fd, "").Close() if err == nil { t.Logf("Something already leaked - closed fd %d", fd) } |
