8372125: containers/docker/TestPids.java fails after 8365606

Reviewed-by: cnorrbin, sgehwolf
This commit is contained in:
SendaoYan 2025-11-23 14:52:59 +00:00
parent ee9d553e51
commit d3328b4bd0

View File

@ -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 {