< prev index next >
test/compiler/compilercontrol/jcmd/StressAddJcmdBase.java
Print this page
rev 9430 : [mq]: PrintDirectives
rev 9429 : imported patch StressJCMD
*** 53,64 ****
* Performs test
*/
public void test() {
List<String> commands = prepareCommands();
Executor executor = new TimeLimitedExecutor(commands);
! OutputAnalyzer outputAnalyzer = executor.execute();
! outputAnalyzer.shouldHaveExitValue(0);
}
/**
* Makes connection to the test VM
*
--- 53,64 ----
* Performs test
*/
public void test() {
List<String> commands = prepareCommands();
Executor executor = new TimeLimitedExecutor(commands);
! List<OutputAnalyzer> outputAnalyzers = executor.execute();
! outputAnalyzers.get(0).shouldHaveExitValue(0);
}
/**
* Makes connection to the test VM
*
*** 93,111 ****
super(true, null, null, jcmdCommands);
this.jcmdCommands = jcmdCommands;
}
@Override
! protected void executeJCMD(int pid) {
TimeLimitedRunner runner = new TimeLimitedRunner(
Utils.DEFAULT_TEST_TIMEOUT,
Utils.TIMEOUT_FACTOR,
() -> makeConnection(pid, jcmdCommands));
try {
runner.call();
} catch (Exception e) {
throw new Error("Exception during the execution: " + e, e);
}
finish();
}
}
}
--- 93,112 ----
super(true, null, null, jcmdCommands);
this.jcmdCommands = jcmdCommands;
}
@Override
! protected OutputAnalyzer[] executeJCMD(int pid) {
TimeLimitedRunner runner = new TimeLimitedRunner(
Utils.DEFAULT_TEST_TIMEOUT,
Utils.TIMEOUT_FACTOR,
() -> makeConnection(pid, jcmdCommands));
try {
runner.call();
} catch (Exception e) {
throw new Error("Exception during the execution: " + e, e);
}
finish();
+ return new OutputAnalyzer[0];
}
}
}
< prev index next >