From 696f11499bc47ef4d9709ca75fd5ecff56076da2 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 22 Jan 2022 14:06:39 +0100 Subject: tests: add skipped O_TMPFILE test Looks like the FUSE protocol does support O_TMPFILE yet. https://github.com/rfjakob/gocryptfs/issues/641 --- tests/defaults/overlayfs_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/defaults') 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) +} -- cgit v1.2.3