mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-28 16:50:10 +00:00
8278102: containers/docker/TestJcmd.java failed with "RuntimeException: Could not find specified process"
Reviewed-by: kevinw, sgehwolf
This commit is contained in:
parent
3a93daf189
commit
9ef2e8dc1c
@ -117,7 +117,6 @@ runtime/NMT/VirtualAllocCommitMerge.java 8309698 linux-s390x
|
||||
|
||||
applications/jcstress/copy.java 8229852 linux-all
|
||||
|
||||
containers/docker/TestJcmd.java 8278102 linux-all
|
||||
containers/docker/TestJFREvents.java 8327723 linux-x64
|
||||
containers/docker/TestJcmdWithSideCar.java 8341518 linux-x64
|
||||
|
||||
|
||||
@ -170,14 +170,10 @@ public class TestJcmd {
|
||||
opts.addDockerOpts("--volume", Utils.TEST_CLASSES + ":/test-classes/:z")
|
||||
.addJavaOpts("-cp", "/test-classes/")
|
||||
.addDockerOpts("--cap-add=SYS_PTRACE")
|
||||
.addDockerOpts("--pull=never")
|
||||
.addDockerOpts("--name", CONTAINER_NAME)
|
||||
.addClassOptions("" + TIME_TO_RUN_CONTAINER_PROCESS);
|
||||
|
||||
if (IS_PODMAN && !ROOT_UID.equals(getId("-u"))) {
|
||||
// map the current userid to the one in the target namespace
|
||||
opts.addDockerOpts("--userns=keep-id");
|
||||
}
|
||||
|
||||
// avoid large Xmx
|
||||
opts.appendTestJavaOptions = false;
|
||||
|
||||
@ -186,7 +182,7 @@ public class TestJcmd {
|
||||
return ProcessTools.startProcess("main-container-process",
|
||||
pb,
|
||||
line -> line.contains(EventGeneratorLoop.MAIN_METHOD_STARTED),
|
||||
5, TimeUnit.SECONDS);
|
||||
15, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user