From de39d5e79bcb7e39f33221684e9fc253cd16a922 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Sun, 24 May 2026 10:08:16 +0200 Subject: [PATCH] tests/int: relax testPids fork error match string The test checked for the exact BusyBox ash diagnostic "sh: can't fork". With BusyBox 1.38, ash reports the failure as: /bin/sh: line 0: can't fork: Resource temporarily unavailable Match the stable "can't fork" part of the error message instead. Signed-off-by: Ricardo Branco --- libcontainer/integration/exec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/integration/exec_test.go b/libcontainer/integration/exec_test.go index e66e1d87b..c1c69a65f 100644 --- a/libcontainer/integration/exec_test.go +++ b/libcontainer/integration/exec_test.go @@ -559,7 +559,7 @@ func testPids(t *testing.T, systemd bool) { // this to fail reliably. config.Cgroups.Resources.PidsLimit = mkPtr[int64](64) out, _, err := runContainer(t, config, "/bin/sh", "-c", truePipeline(64)) - if err != nil && !strings.Contains(out.String(), "sh: can't fork") { + if err != nil && !strings.Contains(out.String(), "can't fork") { t.Fatal(err) }