From d3328b4bd0b2c2b03b4aaf7ebe929c14c4186402 Mon Sep 17 00:00:00 2001 From: SendaoYan Date: Sun, 23 Nov 2025 14:52:59 +0000 Subject: [PATCH] 8372125: containers/docker/TestPids.java fails after 8365606 Reviewed-by: cnorrbin, sgehwolf --- test/hotspot/jtreg/containers/docker/TestPids.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {