aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/dispatcher_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-11 01:48:18 +0900
committerOphestra <cat@gensokyo.uk>2025-09-11 01:48:18 +0900
commitc8a0effe908c22c350c5c492b0e5bbeefc8749f1 (patch)
tree095ce301c53f20aac3f306146670ce69dac30b42 /system/dispatcher_test.go
parent8df01b71d4df56c8b601ca8398b9c09315b69cb8 (diff)
system/wayland: use syscall dispatcher
This enables wayland op methods to be instrumented. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dispatcher_test.go')
-rw-r--r--system/dispatcher_test.go8
1 files changed, 8 insertions, 0 deletions
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(