< prev index next >

test/hotspot/jtreg/serviceability/dcmd/gc/HeapDumpParallelTest.java

Print this page
*** 53,11 ***
  
      private static void checkAndVerify(OutputAnalyzer dcmdOut, LingeredApp app, File heapDumpFile, boolean expectSerial) throws Exception {
          dcmdOut.shouldHaveExitValue(0);
          dcmdOut.shouldContain("Heap dump file created");
          OutputAnalyzer appOut = new OutputAnalyzer(app.getProcessStdout());
!         appOut.shouldContain("[heapdump]");
          String opts = Arrays.asList(Utils.getTestJavaOpts()).toString();
          if (opts.contains("-XX:+UseSerialGC") || opts.contains("-XX:+UseEpsilonGC")) {
              System.out.println("UseSerialGC detected.");
              expectSerial = true;
          }
--- 53,11 ---
  
      private static void checkAndVerify(OutputAnalyzer dcmdOut, LingeredApp app, File heapDumpFile, boolean expectSerial) throws Exception {
          dcmdOut.shouldHaveExitValue(0);
          dcmdOut.shouldContain("Heap dump file created");
          OutputAnalyzer appOut = new OutputAnalyzer(app.getProcessStdout());
!         appOut.shouldMatch("\\[heapdump *\\]");
          String opts = Arrays.asList(Utils.getTestJavaOpts()).toString();
          if (opts.contains("-XX:+UseSerialGC") || opts.contains("-XX:+UseEpsilonGC")) {
              System.out.println("UseSerialGC detected.");
              expectSerial = true;
          }
< prev index next >