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/matrix/concurrency_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/matrix') diff --git a/tests/matrix/concurrency_test.go b/tests/matrix/concurrency_test.go index d133c45..d824316 100644 --- a/tests/matrix/concurrency_test.go +++ b/tests/matrix/concurrency_test.go @@ -144,7 +144,7 @@ func TestInoReuse(t *testing.T) { wg.Add(1) go func() { for i := 0; i < 1000; i++ { - fd, err := syscall.Creat(fn, 0600) + fd, err := syscall.Open(fn, syscall.O_CREAT|syscall.O_WRONLY|syscall.O_TRUNC, 0600) if err == syscall.EISDIR { continue } -- cgit v1.2.3