From c8a0effe908c22c350c5c492b0e5bbeefc8749f1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 11 Sep 2025 01:48:18 +0900 Subject: system/wayland: use syscall dispatcher This enables wayland op methods to be instrumented. Signed-off-by: Ophestra --- system/dispatcher_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'system/dispatcher_test.go') diff --git a/system/dispatcher_test.go b/system/dispatcher_test.go index 7bd4e6db..96769293 100644 --- a/system/dispatcher_test.go +++ b/system/dispatcher_test.go @@ -273,6 +273,14 @@ func (k *kstub) remove(name string) error { stub.CheckArg(k.Stub, "name", name, 0)) } +func (k *kstub) println(v ...any) { + k.Helper() + k.Expects("println") + if !stub.CheckArgReflect(k.Stub, "v", v, 0) { + k.FailNow() + } +} + func (k *kstub) aclUpdate(name string, uid int, perms ...acl.Perm) error { k.Helper() return k.Expects("aclUpdate").Error( -- cgit v1.3.1