test/runtime/CommandLine/TraceExceptionsTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8064319 Cdiff test/runtime/CommandLine/TraceExceptionsTest.java

test/runtime/CommandLine/TraceExceptionsTest.java

Print this page

        

*** 31,45 **** import com.oracle.java.testlibrary.*; public class TraceExceptionsTest { public static void main(String[] args) throws Exception { - if (!Platform.isDebugBuild()) { - System.out.println("Skip the test on product builds since XX:+TraceExceptions is not available on product builds"); - return; - } - ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:+TraceExceptions", "NoClassFound"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("<a 'java/lang/ClassNotFoundException': NoClassFound>"); output.shouldNotContain("<a 'java/lang/ClassNotFoundException'>"); --- 31,40 ----
test/runtime/CommandLine/TraceExceptionsTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File