]> Cypherpunks repositories - gostls13.git/commit
os/exec: TestExtraFiles - close any leaked file descriptors
authorJoel Sing <jsing@google.com>
Tue, 31 Jan 2012 11:09:06 +0000 (22:09 +1100)
committerJoel Sing <jsing@google.com>
Tue, 31 Jan 2012 11:09:06 +0000 (22:09 +1100)
commit1677f1a1632ac2204ad6ed3e892b5beed8e1b654
tree948c23d5c171b653ab0fc1814f77e94b60819f64
parent2d7495d287005b87047f353ac3574146ef50ac29
os/exec: TestExtraFiles - close any leaked file descriptors

Ensure that file descriptors have not already been leaked into our
environment - close any that are open at the start of the
TestExtraFiles test.

Also use the appropriate command for listing open files.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5574062
src/pkg/os/exec/exec_test.go