From c9fd1a38f0da276c4573776e4b3c5d85ddc94f7b Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 8 Apr 2026 11:43:55 -0700 Subject: [PATCH] libct/int: waitProcess: rm dead code Since Wait returns an ExitError if process' exit status is not 0, checking process status is redundant and this code is never reached. Remove it. Signed-off-by: Kir Kolyshkin (cherry picked from commit dd9fda7d6050f89cb136886eadcebeb816957d10) Signed-off-by: Kir Kolyshkin --- libcontainer/integration/utils_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libcontainer/integration/utils_test.go b/libcontainer/integration/utils_test.go index 8fb8f8663..e30630953 100644 --- a/libcontainer/integration/utils_test.go +++ b/libcontainer/integration/utils_test.go @@ -88,14 +88,10 @@ func ok(t testing.TB, err error) { func waitProcess(p *libcontainer.Process, t testing.TB) { t.Helper() - status, err := p.Wait() + _, err := p.Wait() if err != nil { t.Fatalf("unexpected error: %v", err) } - - if !status.Success() { - t.Fatalf("unexpected status: %v", status) - } } // newRootfs creates a new tmp directory and copies the busybox root