1 /* |
1 /* |
2 * Copyright (c) 2016, 2017, 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. |
65 try { |
65 try { |
66 boolean addTestVMOptions = true; |
66 boolean addTestVMOptions = true; |
67 CommandLineOptionTest.verifyJVMStartup(EXPECTED_MESSAGES, |
67 CommandLineOptionTest.verifyJVMStartup(EXPECTED_MESSAGES, |
68 UNEXPECTED_MESSAGES, "Unexpected exit code using " + arg, |
68 UNEXPECTED_MESSAGES, "Unexpected exit code using " + arg, |
69 "Unexpected output using " + arg, ExitCode.OK, |
69 "Unexpected output using " + arg, ExitCode.OK, |
70 addTestVMOptions, "-XX:+UseAOT", "-XX:+PrintAOT", arg, |
70 addTestVMOptions, "-XX:+UnlockExperimentalVMOptions", "-XX:+UseAOT", |
71 "-XX:AOTLibrary=./libSingleAOTLibraryTest.so", |
71 "-XX:+PrintAOT", arg, "-XX:AOTLibrary=./libSingleAOTLibraryTest.so", |
72 HelloWorldPrinter.class.getName()); |
72 HelloWorldPrinter.class.getName()); |
73 } catch (Throwable t) { |
73 } catch (Throwable t) { |
74 throw new Error("Problems executing test: " + t, t); |
74 throw new Error("Problems executing test: " + t, t); |
75 } |
75 } |
76 } |
76 } |