8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 8167063
27 * @library /test/lib
28 * @run main LauncherMessageTest
29 * @summary LauncherHelper should not throw JNI error for LinkageError
30 */
31
32 import java.io.File;
33 import java.nio.file.Paths;
34 import java.util.ArrayList;
35 import java.util.List;
36 import jdk.test.lib.util.FileUtils;
37
38 public class LauncherMessageTest {
39
40 public static void main(String[] args) throws Exception {
41 String userDir = System.getProperty("user.dir", ".");
42 File testDir = new File(userDir, "test");
43 List<String> srcContent = new ArrayList<>();
44
45 // Try to create a test directory before proceeding further
46 if (!testDir.mkdir()) {
47 throw new Exception("Test failed: unable to create"
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 8167063
27 * @library /test/lib
28 * @build jdk.test.lib.util.FileUtils
29 * jdk.test.lib.Utils
30 * jdk.test.lib.Asserts
31 * jdk.test.lib.JDKToolFinder
32 * jdk.test.lib.JDKToolLauncher
33 * jdk.test.lib.Platform
34 * jdk.test.lib.process.*
35 * @run main LauncherMessageTest
36 * @summary LauncherHelper should not throw JNI error for LinkageError
37 */
38
39 import java.io.File;
40 import java.nio.file.Paths;
41 import java.util.ArrayList;
42 import java.util.List;
43 import jdk.test.lib.util.FileUtils;
44
45 public class LauncherMessageTest {
46
47 public static void main(String[] args) throws Exception {
48 String userDir = System.getProperty("user.dir", ".");
49 File testDir = new File(userDir, "test");
50 List<String> srcContent = new ArrayList<>();
51
52 // Try to create a test directory before proceeding further
53 if (!testDir.mkdir()) {
54 throw new Exception("Test failed: unable to create"
|