19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 import java.io.File; |
23 import java.io.File; |
24 import jdk.test.lib.ProcessTools; |
24 import jdk.test.lib.process.ProcessTools; |
25 import jdk.test.lib.OutputAnalyzer; |
25 import jdk.test.lib.process.OutputAnalyzer; |
26 import java.util.ArrayList; |
26 import java.util.ArrayList; |
27 |
27 |
28 /* |
28 /* |
29 * @test |
29 * @test |
30 * @bug 6515172 8148766 |
30 * @bug 6515172 8148766 |
31 * @summary Check that availableProcessors reports the correct value when running in a cpuset on linux |
31 * @summary Check that availableProcessors reports the correct value when running in a cpuset on linux |
32 * @requires os.family == "linux" |
32 * @requires os.family == "linux" |
33 * @modules java.base/jdk.internal.misc |
33 * @modules java.base/jdk.internal.misc |
34 * @library /testlibrary |
34 * @library /test/lib |
35 * @build jdk.test.lib.* |
|
36 * @run driver AvailableProcessors |
35 * @run driver AvailableProcessors |
37 */ |
36 */ |
38 public class AvailableProcessors { |
37 public class AvailableProcessors { |
39 |
38 |
40 static final String SUCCESS_STRING = "Found expected processors: "; |
39 static final String SUCCESS_STRING = "Found expected processors: "; |