tests: add skipped O_TMPFILE test

Looks like the FUSE protocol does support O_TMPFILE yet.

https://github.com/rfjakob/gocryptfs/issues/641
This commit is contained in:
Jakob Unterwurzacher 2022-01-22 14:06:39 +01:00
parent b859bc96ef
commit 696f11499b

View File

@ -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)
}