Skip to content

Commit

Permalink
Launch RMI and RMID for api/java_rmi tests only + increase timeout (#422
Browse files Browse the repository at this point in the history
)

Signed-off-by: Mesbah_Alam@ca.ibm.com <Mesbah_Alam@ca.ibm.com>
  • Loading branch information
Mesbah-Alam authored Mar 31, 2021
1 parent d64ce99 commit 0eb9f57
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions openjdk.test.jck/src/test.jck/net/adoptopenjdk/stf/Jck.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,16 @@ public void execute(StfCoreExtension test) throws Exception {
.addArg(" -passive")
);

rmiRegistry = test.doRunBackgroundProcess("Starting rmiregistry", "RMI", ECHO_ON, ExpectedOutcome.neverCompletes(), test.createJDKToolProcessDefinition()
.setJDKToolOrUtility("rmiregistry") );

rmid = test.doRunBackgroundProcess("Starting rmid", "RMID", ECHO_ON, ExpectedOutcome.neverCompletes(), test.createJDKToolProcessDefinition()
.setJDKToolOrUtility("rmid")
.addArg("-J-Dsun.rmi.activation.execPolicy=none " + "-J-Djava.security.policy=" + test.env().findPrereqFile(testSuiteFolder + "/lib/jck.policy").toString())
);
// We only need RMI registry and RMI activation daemon processes for tests under api/java_rmi
if (tests.contains("api/java_rmi")) {
rmiRegistry = test.doRunBackgroundProcess("Starting RMI registry", "RMI", ECHO_ON, ExpectedOutcome.neverCompletes(), test.createJDKToolProcessDefinition()
.setJDKToolOrUtility("rmiregistry") );

rmid = test.doRunBackgroundProcess("Starting RMI activation system daemon", "RMID", ECHO_ON, ExpectedOutcome.neverCompletes(), test.createJDKToolProcessDefinition()
.setJDKToolOrUtility("rmid")
.addArg("-J-Dsun.rmi.activation.execPolicy=none " + "-J-Djava.security.policy=" + test.env().findPrereqFile(testSuiteFolder + "/lib/jck.policy").toString())
);
}

// tnameserv has been removed from jdk11. We only should need it for jck8
if (jckVersion.contains("jck8")) {
Expand All @@ -381,7 +384,7 @@ public void execute(StfCoreExtension test) throws Exception {
// Use the presence of a '/' to signify that we are running a subset of tests.
// If one of the highest level test nodes is being run it is likely to take a long time.
if ( tests.contains("/") && !isRiscv ) {
timeout = "6h";
timeout = "8h";
}
outcome = ExpectedOutcome.cleanRun().within(timeout);

Expand Down

0 comments on commit 0eb9f57

Please sign in to comment.