equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, 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. |
72 } |
72 } |
73 |
73 |
74 private static void runCmd() throws Throwable { |
74 private static void runCmd() throws Throwable { |
75 // access resource bundles that are exported private unconditionally. |
75 // access resource bundles that are exported private unconditionally. |
76 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
76 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
77 launcher.addToolArg("-cp") |
77 launcher.addToolArg("-ea") |
|
78 .addToolArg("-esa") |
|
79 .addToolArg("-cp") |
78 .addToolArg(Utils.TEST_CLASSES) |
80 .addToolArg(Utils.TEST_CLASSES) |
79 .addToolArg("--module-path") |
81 .addToolArg("--module-path") |
80 .addToolArg(MODS_DIR.toString()) |
82 .addToolArg(MODS_DIR.toString()) |
81 .addToolArg("--add-modules") |
83 .addToolArg("--add-modules") |
82 .addToolArg("bundles") |
84 .addToolArg("bundles") |
90 + "Unexpected exit code: " + exitCode); |
92 + "Unexpected exit code: " + exitCode); |
91 } |
93 } |
92 |
94 |
93 // --add-exports can't open resources |
95 // --add-exports can't open resources |
94 launcher = JDKToolLauncher.createUsingTestJDK("java"); |
96 launcher = JDKToolLauncher.createUsingTestJDK("java"); |
95 launcher.addToolArg("-cp") |
97 launcher.addToolArg("-ea") |
|
98 .addToolArg("-esa") |
|
99 .addToolArg("-cp") |
96 .addToolArg(Utils.TEST_CLASSES) |
100 .addToolArg(Utils.TEST_CLASSES) |
97 .addToolArg("--module-path") |
101 .addToolArg("--module-path") |
98 .addToolArg(MODS_DIR.toString()) |
102 .addToolArg(MODS_DIR.toString()) |
99 .addToolArg("--add-modules") |
103 .addToolArg("--add-modules") |
100 .addToolArg("bundles") |
104 .addToolArg("bundles") |