diff --git a/test/hotspot/jtreg/containers/docker/TestPids.java b/test/hotspot/jtreg/containers/docker/TestPids.java index 62bd70dc61f..7d5f1b0cdf9 100644 --- a/test/hotspot/jtreg/containers/docker/TestPids.java +++ b/test/hotspot/jtreg/containers/docker/TestPids.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2021 SAP SE. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -115,8 +115,8 @@ public class TestPids { Asserts.assertEquals(parts.length, 2); String actual = parts[1].replaceAll("\\s",""); if (expectedValue.equals("max")) { - // Unlimited pids accept max or -1 - if (actual.equals("max") || actual.equals("-1")) { + // Unlimited pids accept max/-1/unlimited + if (actual.equals("max") || actual.equals("-1") || actual.equals("unlimited")) { System.out.println("Found expected " + actual + " for unlimited pids value."); } else { try {