aboutsummaryrefslogtreecommitdiff
path: root/tests/cluster
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-07-16 21:16:45 +0200
committerJakob Unterwurzacher2026-07-16 21:20:29 +0200
commit835cd40733d63bce9a4bd843482766c246495044 (patch)
treef881c809d135bcdc9f496161eb918956433e1538 /tests/cluster
parent9efd5ec6c5e290a24a413dbcdbabc14e34d3177d (diff)
sharedstorage: fix darwin & freebsd build failureLockSharedStorage_rebase2
Diffstat (limited to 'tests/cluster')
-rw-r--r--tests/cluster/poc_test.go6
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
}