diff options
| author | Jakob Unterwurzacher | 2019-09-08 16:15:35 +0200 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2019-09-08 16:15:35 +0200 | 
| commit | ea634090dce2f9a7fe62bae397b92d5940a0be0e (patch) | |
| tree | a7d0c994d3a964281c0c0cf1fe9ba25adb80c106 | |
| parent | ed230379e7af9312206b591c900ef09cb2fd1302 (diff) | |
test_helpers: ListFds: handle an exited process gracefully
This used to dump a backtrace to the console which obscured what
is going on.
| -rw-r--r-- | tests/test_helpers/mount_unmount.go | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go index 30d1c0d..6a2b908 100644 --- a/tests/test_helpers/mount_unmount.go +++ b/tests/test_helpers/mount_unmount.go @@ -201,7 +201,8 @@ func ListFds(pid int) []string {  	}  	f, err := os.Open(dir)  	if err != nil { -		log.Panic(err) +		fmt.Printf("ListFds: %v\n", err) +		return nil  	}  	defer f.Close()  	// Note: Readdirnames filters "." and ".." | 
