aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers/helpers.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-20 14:32:59 +0100
committerJakob Unterwurzacher2019-01-20 14:32:59 +0100
commitec4c9f2adb7bf1edde43a981dc690d3fee6175e8 (patch)
treed47da0fdcccabab2c06422564a2a7acd82ff9870 /tests/test_helpers/helpers.go
parent962c52364415496b64a42b49fe5f90d593dc09f7 (diff)
tests: check that we can delete directories with all permission
Regression test for https://github.com/rfjakob/gocryptfs/issues/354
Diffstat (limited to 'tests/test_helpers/helpers.go')
-rw-r--r--tests/test_helpers/helpers.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index e735cf4..f010a56 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -227,7 +227,9 @@ func TestMkdirRmdir(t *testing.T, plainDir string) {
}
err = syscall.Unlink(dir + "/file")
if err != nil {
- t.Error(err)
+ var st syscall.Stat_t
+ syscall.Stat(dir, &st)
+ t.Errorf("err=%v mode=%0o", err, st.Mode)
return
}
err = syscall.Rmdir(dir)