From ec4c9f2adb7bf1edde43a981dc690d3fee6175e8 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 20 Jan 2019 14:32:59 +0100 Subject: tests: check that we can delete directories with all permission Regression test for https://github.com/rfjakob/gocryptfs/issues/354 --- tests/test_helpers/helpers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/test_helpers') 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) -- cgit v1.2.3