< prev index next >

test/runtime/EnableTracing/TestEnableTracing.java

Print this page

        

*** 31,56 **** import com.oracle.java.testlibrary.ProcessTools; import com.oracle.java.testlibrary.OutputAnalyzer; public class TestEnableTracing { - public static final String OPENJDK_MARK = "OpenJDK"; - public static void main(String[] args) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+EnableTracing", "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); - if (output.getStderr().contains(OPENJDK_MARK)) { - output.shouldMatch("^Class Load"); - output.shouldContain("Loaded Class ="); // verify TraceStream print_val Klass* - } output.shouldHaveExitValue(0); pb = ProcessTools.createJavaProcessBuilder("-XX:+EnableTracing", "-XX:+UseLockedTracing", "-Xcomp ", "-version"); output = new OutputAnalyzer(pb.start()); - if (output.getStderr().contains(OPENJDK_MARK)) { - output.shouldMatch("^Class Load"); - output.shouldMatch("^Compilation"); - output.shouldContain("Java Method ="); // verify TraceStream print_val Method* - } output.shouldHaveExitValue(0); } } --- 31,45 ----
< prev index next >