< prev index next >

test/compiler/compilercontrol/jcmd/StressAddJcmdBase.java

Print this page
rev 9430 : [mq]: PrintDirectives
rev 9429 : imported patch StressJCMD

@@ -53,12 +53,12 @@
      * Performs test
      */
     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);
     }
 
     /**
      * Makes connection to the test VM
      *

@@ -93,19 +93,20 @@
             super(true, null, null, jcmdCommands);
             this.jcmdCommands = jcmdCommands;
         }
 
         @Override
-        protected void executeJCMD(int pid) {
+        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 >