From 1c692bfb7926c0f28cf7f38ca7b49f4941fd2b90 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 22 Aug 2025 22:24:14 +0900 Subject: container/init: call lockOSThread through dispatcher This degrades test performance if not stubbed out. Signed-off-by: Ophestra --- container/dispatcher_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'container/dispatcher_test.go') 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)) -- cgit v1.3.1