8253476: TestUseContainerSupport.java fails on some Linux kernels w/o swap limit capabilities

Reviewed-by: bobv, coleenp
This commit is contained in:
Harold Seigel 2020-09-29 19:59:26 +00:00
parent fb206908b4
commit 2fe0a5d75e

View File

@ -60,8 +60,7 @@ public class TestUseContainerSupport {
DockerRunOptions opts = DockerRunOptions opts =
new DockerRunOptions(imageName, "/jdk/bin/java", "CheckUseContainerSupport"); new DockerRunOptions(imageName, "/jdk/bin/java", "CheckUseContainerSupport");
opts.addClassOptions(Boolean.valueOf(useContainerSupport).toString()); opts.addClassOptions(Boolean.valueOf(useContainerSupport).toString());
opts.addDockerOpts("--memory", "200m") opts.addDockerOpts("--volume", Utils.TEST_CLASSES + ":/test-classes/");
.addDockerOpts("--volume", Utils.TEST_CLASSES + ":/test-classes/");
if (useContainerSupport) { if (useContainerSupport) {
opts.addJavaOpts("-XX:+UseContainerSupport"); opts.addJavaOpts("-XX:+UseContainerSupport");
} else { } else {