< prev index next >

test/compiler/compilercontrol/share/scenario/Scenario.java

Print this page
rev 9433 : [mq]: CommandProcessor
rev 9431 : [mq]: InlineOpen
rev 9430 : [mq]: PrintDirectives
rev 9429 : imported patch StressJCMD
rev 9150 : 8066166: JEP-JDK-8046155: Test task: dcmd tests
Summary: Tests for diagnostic command in CompilerControl
Reviewed-by: kvn
rev 9149 : 8066153: JEP-JDK-8046155: Test task: cover existing
Summary: Tests for CompilerCommand and CompilerControl's directives
Reviewed-by: kvn

*** 26,36 **** import compiler.compilercontrol.share.method.MethodDescriptor; import compiler.compilercontrol.share.processors.CommandProcessor; import compiler.compilercontrol.share.processors.LogProcessor; import compiler.compilercontrol.share.processors.PrintDirectivesProcessor; import compiler.compilercontrol.share.processors.PrintProcessor; - import compiler.compilercontrol.share.processors.QuietProcessor; import jdk.test.lib.Asserts; import jdk.test.lib.OutputAnalyzer; import jdk.test.lib.Pair; import pool.PoolHelper; --- 26,35 ----
*** 75,86 **** quieted.add(cc); } else { nonQuieted.add(cc); } } ! processors.add(new CommandProcessor(nonQuieted)); ! processors.add(new QuietProcessor(quieted)); List<String> jcmdExecCommands = new ArrayList<>(); boolean addCommandMet = false; boolean printCommandMet = false; for (JcmdCommand cmd : jcmdCommands) { switch (cmd.jcmdType) { --- 74,84 ---- quieted.add(cc); } else { nonQuieted.add(cc); } } ! processors.add(new CommandProcessor(nonQuieted, quieted)); List<String> jcmdExecCommands = new ArrayList<>(); boolean addCommandMet = false; boolean printCommandMet = false; for (JcmdCommand cmd : jcmdCommands) { switch (cmd.jcmdType) {
*** 271,283 **** */ List<CompileCommand> ccList = new ArrayList<>(); ccList.addAll(builders.get(Type.OPTION).getCompileCommands()); ccList.addAll(builders.get(Type.FILE).getCompileCommands()); ! /* ! * Create a list of directives to check which one was printed ! */ List<CompileCommand> directives = new ArrayList<>(); if (jcmdContainsCommand(JcmdType.PRINT)) { if (!isClearedState) { directives.addAll(builders.get(Type.DIRECTIVE) .getCompileCommands()); --- 269,279 ---- */ List<CompileCommand> ccList = new ArrayList<>(); ccList.addAll(builders.get(Type.OPTION).getCompileCommands()); ccList.addAll(builders.get(Type.FILE).getCompileCommands()); ! // Create a list of directives to check which one was printed List<CompileCommand> directives = new ArrayList<>(); if (jcmdContainsCommand(JcmdType.PRINT)) { if (!isClearedState) { directives.addAll(builders.get(Type.DIRECTIVE) .getCompileCommands());
< prev index next >