aboutsummaryrefslogtreecommitdiff
path: root/tests/root_test/root_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/root_test/root_test.go')
-rw-r--r--tests/root_test/root_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/root_test/root_test.go b/tests/root_test/root_test.go
index 462aaeb..7d1e296 100644
--- a/tests/root_test/root_test.go
+++ b/tests/root_test/root_test.go
@@ -179,7 +179,13 @@ func TestDiskFull(t *testing.T) {
t.Fatal(err)
}
defer syscall.Unlink(ext4img)
- defer syscall.Unmount(ext4mnt, 0)
+ defer func() {
+ const MNT_DETACH = 2
+ err := syscall.Unmount(ext4mnt, MNT_DETACH)
+ if err != nil {
+ t.Log(err)
+ }
+ }()
// gocryptfs -init
cipherdir := ext4mnt + "/a"