diff options
| author | Jakob Unterwurzacher | 2026-07-16 21:16:45 +0200 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-07-16 21:20:29 +0200 |
| commit | 835cd40733d63bce9a4bd843482766c246495044 (patch) | |
| tree | f881c809d135bcdc9f496161eb918956433e1538 /tests/cluster | |
| parent | 9efd5ec6c5e290a24a413dbcdbabc14e34d3177d (diff) | |
sharedstorage: fix darwin & freebsd build failureLockSharedStorage_rebase2
Diffstat (limited to 'tests/cluster')
| -rw-r--r-- | tests/cluster/poc_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cluster/poc_test.go b/tests/cluster/poc_test.go index e8b6da6..52b9ec9 100644 --- a/tests/cluster/poc_test.go +++ b/tests/cluster/poc_test.go @@ -44,11 +44,11 @@ func TestPoCFcntlFlock(t *testing.T) { Start: 0, Len: 0, } - err = unix.FcntlFlock(uintptr(fd1), unix.F_OFD_SETLK, &lk) + err = unix.FcntlFlock(uintptr(fd1), syscallcompat.F_OFD_SETLK, &lk) if err != nil { t.Fatal(err) } - err = unix.FcntlFlock(uintptr(fd2), unix.F_OFD_SETLK, &lk) + err = unix.FcntlFlock(uintptr(fd2), syscallcompat.F_OFD_SETLK, &lk) if err == nil { t.Fatal("double-lock succeeded but should have failed") } @@ -190,7 +190,7 @@ func doTestPoCTornWrite(t *testing.T, locking bool) { Start: 0, Len: int64(len(blockData)), } - if err := unix.FcntlFlock(uintptr(f.Fd()), unix.F_OFD_SETLKW, &lk); err != nil { + if err := unix.FcntlFlock(uintptr(f.Fd()), syscallcompat.F_OFD_SETLKW, &lk); err != nil { t.Error(err) return } |
