equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2017, 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. |
28 import java.util.ArrayList; |
28 import java.util.ArrayList; |
29 import java.util.List; |
29 import java.util.List; |
30 import java.util.Map; |
30 import java.util.Map; |
31 import java.util.spi.ToolProvider; |
31 import java.util.spi.ToolProvider; |
32 |
32 |
|
33 import jdk.test.lib.compiler.CompilerUtils; |
33 import jdk.testlibrary.OutputAnalyzer; |
34 import jdk.testlibrary.OutputAnalyzer; |
34 import org.testng.annotations.BeforeTest; |
35 import org.testng.annotations.BeforeTest; |
35 import org.testng.annotations.DataProvider; |
36 import org.testng.annotations.DataProvider; |
36 import org.testng.annotations.Test; |
37 import org.testng.annotations.Test; |
37 |
38 |
40 |
41 |
41 /** |
42 /** |
42 * @test |
43 * @test |
43 * @bug 8168205 |
44 * @bug 8168205 |
44 * @summary Test the default class path if -Djava.class.path is set |
45 * @summary Test the default class path if -Djava.class.path is set |
45 * @library /lib/testlibrary |
46 * @library /lib/testlibrary /test/lib |
46 * @modules jdk.compiler |
47 * @modules jdk.compiler |
47 * jdk.jartool |
48 * jdk.jartool |
48 * @build CompilerUtils jdk.testlibrary.* |
49 * @build jdk.test.lib.compiler.CompilerUtils jdk.testlibrary.* |
49 * @run testng JavaClassPathTest |
50 * @run testng JavaClassPathTest |
50 */ |
51 */ |
51 |
52 |
52 public class JavaClassPathTest { |
53 public class JavaClassPathTest { |
53 private static final Path SRC_DIR = Paths.get(System.getProperty("test.src"), |
54 private static final Path SRC_DIR = Paths.get(System.getProperty("test.src"), |