test/hotspot/jtreg/compiler/aot/cli/AotLibraryNegativeBase.java
changeset 57681 41f2f2829a09
parent 47216 71c04702a3d5
equal deleted inserted replaced
57680:cafd691c6c04 57681:41f2f2829a09
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    37             boolean addTestVMOptions = true;
    37             boolean addTestVMOptions = true;
    38             CommandLineOptionTest.verifyJVMStartup(expectedMessages,
    38             CommandLineOptionTest.verifyJVMStartup(expectedMessages,
    39                     UNEXPECTED_MESSAGES,
    39                     UNEXPECTED_MESSAGES,
    40                     "Unexpected exit code using " + option,
    40                     "Unexpected exit code using " + option,
    41                     "Unexpected output using " + option, ExitCode.FAIL,
    41                     "Unexpected output using " + option, ExitCode.FAIL,
    42                     addTestVMOptions, "-XX:+UseAOT", "-XX:+PrintAOT",
    42                     addTestVMOptions, "-XX:+UnlockExperimentalVMOptions", "-XX:+UseAOT",
    43                     option, HelloWorldPrinter.class.getName());
    43                     "-XX:+PrintAOT", option, HelloWorldPrinter.class.getName());
    44         } catch (Throwable t) {
    44         } catch (Throwable t) {
    45             throw new Error("Problems executing test using " + option
    45             throw new Error("Problems executing test using " + option
    46                     + ": " + t, t);
    46                     + ": " + t, t);
    47         }
    47         }
    48     }
    48     }