aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/dispatcher_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-22 22:24:14 +0900
committerOphestra <cat@gensokyo.uk>2025-08-22 22:24:14 +0900
commit1c692bfb7926c0f28cf7f38ca7b49f4941fd2b90 (patch)
tree7c96da4c637fa31115131e35510229f6a5b0f843 /container/dispatcher_test.go
parent141a18999f36d3e6211d99b24a355d8ea908f32a (diff)
container/init: call lockOSThread through dispatcher
This degrades test performance if not stubbed out. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/dispatcher_test.go')
-rw-r--r--container/dispatcher_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/container/dispatcher_test.go b/container/dispatcher_test.go
index f01b6f39..1152e167 100644
--- a/container/dispatcher_test.go
+++ b/container/dispatcher_test.go
@@ -315,6 +315,8 @@ func checkArgReflect(k *kstub, arg string, got any, n int) bool {
return true
}
+func (k *kstub) lockOSThread() { k.expect("lockOSThread") }
+
func (k *kstub) setPtracer(pid uintptr) error {
return k.expect("setPtracer").error(
checkArg(k, "pid", pid, 0))