test/runtime/CommandLine/TraceExceptionsTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/test/runtime/CommandLine/TraceExceptionsTest.java	Fri Dec 12 15:05:15 2014
--- new/test/runtime/CommandLine/TraceExceptionsTest.java	Fri Dec 12 15:05:14 2014

*** 31,45 **** --- 31,40 ---- 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'>");

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