mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-28 03:43:21 +00:00
8372125: containers/docker/TestPids.java fails after 8365606
Reviewed-by: cnorrbin, sgehwolf
This commit is contained in:
parent
ee9d553e51
commit
d3328b4bd0
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user