test/runtime/NMT/CommandLineTurnOffNMT.java

Print this page

        

@@ -22,11 +22,11 @@
  */
 
  /*
  * @test
  * @key nmt
- * @summary Turning off NMT should not result in an error or warning
+ * @summary Turning off NMT should not result in an error
  * @library /testlibrary
  */
 
 import com.oracle.java.testlibrary.*;
 

@@ -36,9 +36,8 @@
     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
               "-XX:NativeMemoryTracking=off",
               "-version");
     OutputAnalyzer output = new OutputAnalyzer(pb.start());
     output.shouldNotContain("error");
-    output.shouldNotContain("warning");
     output.shouldHaveExitValue(0);
   }
 }