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 import jdk.test.lib.process.ProcessTools;
25
26 import java.nio.file.Path;
27 import java.nio.file.Paths;
28
29 /**
30 * @test
31 * @bug 6449565
32 * @library /test/lib
33 * @build jdk.test.lib.process.ProcessTools
34 * @run main OldSocketImplTestDriver
35 * @summary Test driver for OdlSocketImpl
36 */
37 public class OldSocketImplTestDriver {
38 public static void main(String[] args) throws Throwable {
39 Path jar = Paths.get(System.getProperty("test.src"),
40 "OldSocketImpl.jar");
41 ProcessTools.executeTestJava("-cp", jar.toString(), "OldSocketImpl")
42 .outputTo(System.out)
43 .errorTo(System.out)
44 .shouldHaveExitValue(0);
45 }
46 }
|
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 import jdk.test.lib.process.ProcessTools;
25
26 import java.nio.file.Path;
27 import java.nio.file.Paths;
28
29 /**
30 * @test
31 * @bug 6449565
32 * @library /test/lib
33 * @build jdk.test.lib.Utils
34 * jdk.test.lib.Asserts
35 * jdk.test.lib.JDKToolFinder
36 * jdk.test.lib.JDKToolLauncher
37 * jdk.test.lib.Platform
38 * jdk.test.lib.process.*
39 * @run main OldSocketImplTestDriver
40 * @summary Test driver for OdlSocketImpl
41 */
42 public class OldSocketImplTestDriver {
43 public static void main(String[] args) throws Throwable {
44 Path jar = Paths.get(System.getProperty("test.src"),
45 "OldSocketImpl.jar");
46 ProcessTools.executeTestJava("-cp", jar.toString(), "OldSocketImpl")
47 .outputTo(System.out)
48 .errorTo(System.out)
49 .shouldHaveExitValue(0);
50 }
51 }
|