aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/system/dispatcher_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-18 20:33:03 +0900
committerOphestra <cat@gensokyo.uk>2026-10-18 20:33:37 +0900
commit1a7b909f971dee8c215cf1877cd95a3d690730e1 (patch)
treeef27df23f8fcfb9ff770d69181a76efeb0d8c554 /internal/system/dispatcher_test.go
parent9eb09ee7556cea7b9c138e4a3bfa1692f95347a5 (diff)
internal/system: file-based big lock
Simultaneous commits or reverts can race if they have overlapping targets. This big lock synchronises entry into the Commit and Revert critical sections across all cmd/hakurei processes. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/system/dispatcher_test.go')
-rw-r--r--internal/system/dispatcher_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/system/dispatcher_test.go b/internal/system/dispatcher_test.go
index dd42b965..bfb8df72 100644
--- a/internal/system/dispatcher_test.go
+++ b/internal/system/dispatcher_test.go
@@ -208,7 +208,7 @@ func checkOpMeta(t *testing.T, testCases []opMetaTestCase) {
// InternalNew initialises [I] with a stub syscallDispatcher.
func InternalNew(t *testing.T, want stub.Expect, uid int) (*I, *stub.Stub[syscallDispatcher]) {
k := &kstub{stub.New(t, func(s *stub.Stub[syscallDispatcher]) syscallDispatcher { return &kstub{s} }, want)}
- sys := New(t.Context(), k, uid)
+ sys := New(t.Context(), k, uid, nil)
sys.syscallDispatcher = k
return sys, k.Stub
}