hotspot/test/compiler/aot/cli/jaotc/CompileClassTest.java
changeset 43464 f38fde4a6b52
parent 42650 1f304d0c888b
child 43479 67507b173e81
equal deleted inserted replaced
43462:cde11973a86a 43464:f38fde4a6b52
    39 import jdk.test.lib.Asserts;
    39 import jdk.test.lib.Asserts;
    40 import jdk.test.lib.process.OutputAnalyzer;
    40 import jdk.test.lib.process.OutputAnalyzer;
    41 
    41 
    42 public class CompileClassTest {
    42 public class CompileClassTest {
    43     public static void main(String[] args) {
    43     public static void main(String[] args) {
    44         OutputAnalyzer oa = JaotcTestHelper.compileLibrary(JaotcTestHelper
    44         OutputAnalyzer oa = JaotcTestHelper.compileLibrary("--classname", JaotcTestHelper
    45                 .getClassAotCompilationName(HelloWorldOne.class));
    45                 .getClassAotCompilationName(HelloWorldOne.class));
    46         oa.shouldHaveExitValue(0);
    46         oa.shouldHaveExitValue(0);
    47         File compiledLibrary = new File(JaotcTestHelper.DEFAULT_LIB_PATH);
    47         File compiledLibrary = new File(JaotcTestHelper.DEFAULT_LIB_PATH);
    48         Asserts.assertTrue(compiledLibrary.exists(), "Compiled library file missing");
    48         Asserts.assertTrue(compiledLibrary.exists(), "Compiled library file missing");
    49         Asserts.assertGT(compiledLibrary.length(), 0L, "Unexpected compiled library size");
    49         Asserts.assertGT(compiledLibrary.length(), 0L, "Unexpected compiled library size");