diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-06 12:59:33 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-06 12:59:33 +0900 |
| commit | e603b688ca6d023b783e58f3876430ea73dd21a6 (patch) | |
| tree | 1bcc1b9865353163b246fe6ae0d09d31af3dfed2 /system/dispatcher_test.go | |
| parent | a9def085338d2ce3627850ca3b6844b32fccfdc9 (diff) | |
system/dispatcher: expose test reporting to builder
This is currently unused but useful for builders with errors.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dispatcher_test.go')
| -rw-r--r-- | system/dispatcher_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/dispatcher_test.go b/system/dispatcher_test.go index 53d2b664..7c7c10c9 100644 --- a/system/dispatcher_test.go +++ b/system/dispatcher_test.go @@ -75,7 +75,7 @@ func checkOpBehaviour(t *testing.T, testCases []opBehaviourTestCase) { type opsBuilderTestCase struct { name string uid int - f func(sys *I) + f func(t *testing.T, sys *I) want []Op exp stub.Expect } @@ -92,7 +92,7 @@ func checkOpsBuilder(t *testing.T, fname string, testCases []opsBuilderTestCase) sys, s := InternalNew(t, tc.exp, tc.uid) defer stub.HandleExit(t) - tc.f(sys) + tc.f(t, sys) s.VisitIncomplete(func(s *stub.Stub[syscallDispatcher]) { t.Helper() |
