From 914ab8a23f2beec9ff98d211f8aa9f6ee0ab1fa1 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 21 Dec 2011 17:17:28 -0500 Subject: [PATCH] os/exec: dump lsof on failure R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5504063 --- src/pkg/os/exec/exec_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkg/os/exec/exec_test.go b/src/pkg/os/exec/exec_test.go index a015cbe96cc..d7e61e73795 100644 --- a/src/pkg/os/exec/exec_test.go +++ b/src/pkg/os/exec/exec_test.go @@ -262,6 +262,7 @@ func TestHelperProcess(*testing.T) { f, err := os.Open(os.Args[0]) if err != nil { fmt.Printf("error opening file with expected fd %d: %v", wantfd, err) + fmt.Println(Command("lsof", "-p", fmt.Sprint(os.Getpid())).CombinedOutput()) os.Exit(1) } if got := f.Fd(); got != wantfd {