diff options
author | Jakob Unterwurzacher | 2021-12-08 18:49:21 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-12-08 18:49:21 +0100 |
commit | 7d60315cd53080e223051a4f16eb3ace3b86e095 (patch) | |
tree | b64657c619a23c90c48d788b0c7fcbd7ac16b157 /tests/cli/cli_test.go | |
parent | de22cb1e5dfba8f8b97a5da671bfb2b1a845afb7 (diff) |
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
Diffstat (limited to 'tests/cli/cli_test.go')
-rw-r--r-- | tests/cli/cli_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cli/cli_test.go b/tests/cli/cli_test.go index d63625b..c433e92 100644 --- a/tests/cli/cli_test.go +++ b/tests/cli/cli_test.go @@ -982,7 +982,7 @@ func TestMountCreat(t *testing.T) { for i := 0; i < concurrency; i++ { go func(i int) { path := fmt.Sprintf("%s/%d", mnt, i) - fd, err := syscall.Creat(path, 0600) + fd, err := syscall.Open(path, syscall.O_CREAT|syscall.O_WRONLY|syscall.O_TRUNC, 0600) syscall.Close(fd) if err != nil { t.Errorf("Creat %q: %v", path, err) |