Maybe fails after JDK-8302744
jtreg -va -nr -w tmp test/hotspot/jtreg/containers/docker/TestPids.java
test result snippet:
docker run --tty=true --rm --volume /var/tmp/tone/run/jtreg/jt-work-docker/hotspot_jtreg/classes/1/containers/docker/TestPids.d:/test-classes/ --pids-limit=-1 jdk-internal:test-containers-docker-TestPids-pids /jdk/bin/java -XX:+ErrorFileToStderr -Xlog:os+container=trace -cp /test-classes/ -Xbootclasspath/a:/test-classes/whitebox.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -Xmixed -ea -esa PrintContainerInfo
DEBUG: line = [0.026s][trace][os,container] Maximum number of tasks is: -1
DEBUG: parts.length = 2
STDERR:
java.lang.RuntimeException: Limit value -1 is not accepted as unlimited, log line was [0.026s][trace][os,container] Maximum number of tasks is: -1
at TestPids.checkResult(TestPids.java:126)
at TestPids.testPids(TestPids.java:154)
at TestPids.testPids(TestPids.java:77)
at TestPids.main(TestPids.java:64)