aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2022-01-22 14:06:39 +0100
committerJakob Unterwurzacher2022-01-22 14:06:39 +0100
commit696f11499bc47ef4d9709ca75fd5ecff56076da2 (patch)
tree5b9119713521264b734d046f63d1d30488ee1bc6 /tests
parentb859bc96efa91eff01f7dc0c14d90633b7e4ba92 (diff)
tests: add skipped O_TMPFILE test
Looks like the FUSE protocol does support O_TMPFILE yet. https://github.com/rfjakob/gocryptfs/issues/641
Diffstat (limited to 'tests')
-rw-r--r--tests/defaults/overlayfs_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/defaults/overlayfs_test.go b/tests/defaults/overlayfs_test.go
index 1a3298d..2bc4387 100644
--- a/tests/defaults/overlayfs_test.go
+++ b/tests/defaults/overlayfs_test.go
@@ -107,3 +107,13 @@ func TestRenameExchange(t *testing.T) {
}
}
}
+
+// Looks like the FUSE protocol does support O_TMPFILE yet
+func TestOTmpfile(t *testing.T) {
+ p := test_helpers.DefaultPlainDir + "/" + t.Name()
+ fd, err := unix.Openat(-1, p, unix.O_TMPFILE, 0600)
+ if err != nil {
+ t.Skip(err)
+ }
+ unix.Close(fd)
+}