forked from security/hakurei
container/init: call lockOSThread through dispatcher
This degrades test performance if not stubbed out. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user