diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2012-02-10 14:16:15 +1100 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2012-02-10 14:16:15 +1100 |
| commit | 4152b4345724dae4b058d48a23d29ac8f8bda453 (patch) | |
| tree | eb05d435757bd5092716c51d8630c63f2d8c3725 /src/pkg/os/exec/exec_test.go | |
| parent | 6c0aa2f296142c7acbd3b99e0378fe39b76db48a (diff) | |
| download | go-4152b4345724dae4b058d48a23d29ac8f8bda453.tar.xz | |
os: delete Exec, NewFile takes uintptr, rename ShellExpand, doc fixes
Delete O_NDELAY, O_NONBLOCK, O_NOCTTY, O_ASYNC.
Clean up some docs.
Rename ShellExpand -> ExpandEnv.
Make NewFile take a uintptr; change File.Fd to return one.
(for API compatibility between Unix and Windows)
Fixes #2947
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5655045
Diffstat (limited to 'src/pkg/os/exec/exec_test.go')
| -rw-r--r-- | src/pkg/os/exec/exec_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/os/exec/exec_test.go b/src/pkg/os/exec/exec_test.go index d00d12008f..2e4bef5119 100644 --- a/src/pkg/os/exec/exec_test.go +++ b/src/pkg/os/exec/exec_test.go @@ -153,7 +153,7 @@ func TestExtraFiles(t *testing.T) { // Ensure that file descriptors have not already been leaked into // our environment. - for fd := os.Stderr.Fd() + 1; fd <= 101; fd++ { + for fd := int(os.Stderr.Fd()) + 1; fd <= 101; fd++ { err := syscall.Close(fd) if err == nil { t.Logf("Something already leaked - closed fd %d", fd) |
