mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8138993: JEP-JDK-8046155: Test task: add check for Compiler.directives_print diagnostic command
Test Compiler.directive_print command Reviewed-by: iignatyev, neliasso
This commit is contained in:
parent
faa5a2381c
commit
06c9ee5a1c
9 changed files with 265 additions and 35 deletions
|
@ -55,8 +55,8 @@ public abstract class StressAddJcmdBase {
|
|||
public void test() {
|
||||
List<String> commands = prepareCommands();
|
||||
Executor executor = new TimeLimitedExecutor(commands);
|
||||
OutputAnalyzer outputAnalyzer = executor.execute();
|
||||
outputAnalyzer.shouldHaveExitValue(0);
|
||||
List<OutputAnalyzer> outputAnalyzers = executor.execute();
|
||||
outputAnalyzers.get(0).shouldHaveExitValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -95,7 +95,7 @@ public abstract class StressAddJcmdBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void executeJCMD(int pid) {
|
||||
protected OutputAnalyzer[] executeJCMD(int pid) {
|
||||
TimeLimitedRunner runner = new TimeLimitedRunner(
|
||||
Utils.DEFAULT_TEST_TIMEOUT,
|
||||
Utils.TIMEOUT_FACTOR,
|
||||
|
@ -106,6 +106,7 @@ public abstract class StressAddJcmdBase {
|
|||
throw new Error("Exception during the execution: " + e, e);
|
||||
}
|
||||
finish();
|
||||
return new OutputAnalyzer[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue