aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-03-06 21:22:01 +0100
committerJakob Unterwurzacher2018-03-06 21:28:09 +0100
commit98f735ff6e05ef71753f1c2fa60c30b195b02d3d (patch)
treecb6ae0655ad7cc64e0979e4e5d37baca3ebdfdca /tests/matrix
parent4732e33a9a39935ecc07dfb7e857cc05b6fc6045 (diff)
tests: drop "-z" from fusermount to catch forgotten fds
macos does not have lazy unmount, so let's not use it on linux either. If the unmount fails, run "lsof" to find the open file. Also fix the first bug we found this way.
Diffstat (limited to 'tests/matrix')
-rw-r--r--tests/matrix/matrix_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index f492001..574f11f 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -796,6 +796,7 @@ func TestUtimesNanoFd(t *testing.T) {
if err != nil {
t.Fatal(err)
}
+ defer f.Close()
procPath := fmt.Sprintf("/proc/self/fd/%d", f.Fd())
doTestUtimesNano(t, procPath)
}