< 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,11 +26,10 @@
 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;
 

@@ -75,12 +74,11 @@
                 quieted.add(cc);
             } else {
                 nonQuieted.add(cc);
             }
         }
-        processors.add(new CommandProcessor(nonQuieted));
-        processors.add(new QuietProcessor(quieted));
+        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,13 +269,11 @@
              */
             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
-             */
+            // 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 >