aboutsummaryrefslogtreecommitdiffhomepage
path: root/system
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-04 19:39:12 +0900
committerOphestra <cat@gensokyo.uk>2025-09-04 19:39:12 +0900
commit3920acf8c215a30bc3b48408cf46a3951ec04555 (patch)
tree82ac0cb4af518165114ee17b6c7796999ac40136 /system
parent19630a95932451b4df3f6fd70e88aef9303235e9 (diff)
container/stub: remove function call in handleExit
This gets inlined and does not cause problems usually but turns out -coverpkg uninlines it and breaks the recovery. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system')
-rw-r--r--system/dispatcher_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/dispatcher_test.go b/system/dispatcher_test.go
index 7fbb75c2..53d2b664 100644
--- a/system/dispatcher_test.go
+++ b/system/dispatcher_test.go
@@ -44,7 +44,7 @@ func checkOpBehaviour(t *testing.T, testCases []opBehaviourTestCase) {
}
sys, s := InternalNew(t, stub.Expect{Calls: slices.Concat(tc.apply, []stub.Call{{Name: stub.CallSeparator}}, tc.revert)}, tc.uid)
- defer s.HandleExit()
+ defer stub.HandleExit(t)
errApply := tc.op.apply(sys)
s.Expects(stub.CallSeparator)
if !reflect.DeepEqual(errApply, tc.wantErrApply) {
@@ -91,7 +91,7 @@ func checkOpsBuilder(t *testing.T, fname string, testCases []opsBuilderTestCase)
t.Helper()
sys, s := InternalNew(t, tc.exp, tc.uid)
- defer s.HandleExit()
+ defer stub.HandleExit(t)
tc.f(sys)
s.VisitIncomplete(func(s *stub.Stub[syscallDispatcher]) {
t.Helper()