From 7d60315cd53080e223051a4f16eb3ace3b86e095 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 8 Dec 2021 18:49:21 +0100 Subject: tests: convert Creat() calls to Open() Creat() is equivalent to Open(..., O_CREAT|O_WRONLY|O_TRUNC, ...) and MacOS does not have syscall.Creat(). https://github.com/rfjakob/gocryptfs/issues/623 --- tests/plaintextnames/plaintextnames_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/plaintextnames') diff --git a/tests/plaintextnames/plaintextnames_test.go b/tests/plaintextnames/plaintextnames_test.go index c6d6145..f2dc7e7 100644 --- a/tests/plaintextnames/plaintextnames_test.go +++ b/tests/plaintextnames/plaintextnames_test.go @@ -116,7 +116,7 @@ func TestInoReuseEvil(t *testing.T) { } // create a new file that will likely get the same inode number pPath2 := pPath + "2" - fd, err := syscall.Creat(pPath2, 0600) + fd, err := syscall.Open(pPath2, syscall.O_CREAT|syscall.O_WRONLY|syscall.O_TRUNC, 0600) if err != nil { t.Fatal(err) } -- cgit v1.2.3