8253476: TestUseContainerSupport.java fails on some Linux kernels w/o swap limit capabilities
Reviewed-by: bobv, coleenp
This commit is contained in:
parent
fb206908b4
commit
2fe0a5d75e
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user