equal
deleted
inserted
replaced
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"); |