hotspot/test/compiler/aot/cli/jaotc/CompileDirectoryTest.java
changeset 43464 f38fde4a6b52
parent 42650 1f304d0c888b
child 46289 1904e7ec236e
equal deleted inserted replaced
43462:cde11973a86a 43464:f38fde4a6b52
    40 import jdk.test.lib.Asserts;
    40 import jdk.test.lib.Asserts;
    41 import jdk.test.lib.process.OutputAnalyzer;
    41 import jdk.test.lib.process.OutputAnalyzer;
    42 
    42 
    43 public class CompileDirectoryTest {
    43 public class CompileDirectoryTest {
    44     public static void main(String[] args) {
    44     public static void main(String[] args) {
    45         OutputAnalyzer oa =JaotcTestHelper.compileLibrary(".");
    45         OutputAnalyzer oa =JaotcTestHelper.compileLibrary("--directory", ".");
    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");
    50         JaotcTestHelper.checkLibraryUsage(HelloWorldOne.class.getName());
    50         JaotcTestHelper.checkLibraryUsage(HelloWorldOne.class.getName());