aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-09-08 16:15:35 +0200
committerJakob Unterwurzacher2019-09-08 16:15:35 +0200
commitea634090dce2f9a7fe62bae397b92d5940a0be0e (patch)
treea7d0c994d3a964281c0c0cf1fe9ba25adb80c106 /tests/test_helpers
parented230379e7af9312206b591c900ef09cb2fd1302 (diff)
test_helpers: ListFds: handle an exited process gracefully
This used to dump a backtrace to the console which obscured what is going on.
Diffstat (limited to 'tests/test_helpers')
-rw-r--r--tests/test_helpers/mount_unmount.go3
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 ".."