diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-18 20:33:03 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-18 20:33:37 +0900 |
| commit | 1a7b909f971dee8c215cf1877cd95a3d690730e1 (patch) | |
| tree | ef27df23f8fcfb9ff770d69181a76efeb0d8c554 /internal/outcome/spdbus_test.go | |
| parent | 9eb09ee7556cea7b9c138e4a3bfa1692f95347a5 (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/outcome/spdbus_test.go')
| -rw-r--r-- | internal/outcome/spdbus_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/outcome/spdbus_test.go b/internal/outcome/spdbus_test.go index 4720b5c8..3b9f07f7 100644 --- a/internal/outcome/spdbus_test.go +++ b/internal/outcome/spdbus_test.go @@ -80,7 +80,7 @@ func TestSpDBusOp(t *testing.T) { "--broadcast=org.freedesktop.portal.*=@/org/freedesktop/portal/*", )}}, nil, nil), }, func() *system.I { - sys := system.New(panicMsgContext{}, message.New(nil), checkExpectUid) + sys := system.New(panicMsgContext{}, message.New(nil), checkExpectUid, nil) sys.Ephemeral(system.Process, m(wantInstancePrefix), 0711, false) if err := sys.ProxyDBus( dbus.NewConfig(config.ID, true, true), nil, @@ -162,7 +162,7 @@ func TestSpDBusOp(t *testing.T) { "--talk=org.freedesktop.UPower", )}}, nil, nil), }, func() *system.I { - sys := system.New(panicMsgContext{}, message.New(nil), checkExpectUid) + sys := system.New(panicMsgContext{}, message.New(nil), checkExpectUid, nil) sys.Ephemeral(system.Process, m(wantInstancePrefix), 0711, false) if err := sys.ProxyDBus( config.SessionBus, config.SystemBus, |
