container/dispatcher: remove wait4 test log

Turns out the reporting methods are not safe for concurrent use, despite the claim in testing.T doc comment.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-09-04 05:30:57 +09:00
parent 4051577d6b
commit 19630a9593

View File

@@ -650,7 +650,6 @@ func (k *kstub) wait4(pid int, wstatus *syscall.WaitStatus, options int, rusage
expect := k.Expects("wait4")
// special case to prevent leaking the wait4 goroutine when testing initEntrypoint
if v, ok := expect.Args[4].(int); ok && v == stub.PanicExit {
k.Log("terminating current goroutine as requested by kexpect")
panic(stub.PanicExit)
}