From 07b78716af6a9d7c9fd1e94d9baf94a52c873947 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Fri, 30 Sep 2016 16:24:48 +0000 Subject: Makefile.def: Remove libjava. 2016-09-30 Andrew Haley * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. From-SVN: r240662 --- libjava/testsuite/libjava.lang/Process_1.java | 41 --------------------------- 1 file changed, 41 deletions(-) delete mode 100644 libjava/testsuite/libjava.lang/Process_1.java (limited to 'libjava/testsuite/libjava.lang/Process_1.java') diff --git a/libjava/testsuite/libjava.lang/Process_1.java b/libjava/testsuite/libjava.lang/Process_1.java deleted file mode 100644 index adc6354..0000000 --- a/libjava/testsuite/libjava.lang/Process_1.java +++ /dev/null @@ -1,41 +0,0 @@ -// Create a process and read from its standard output. -// -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; - - -public class Process_1 -{ - public static void main(String[] args) - { - try - { - Runtime r = Runtime.getRuntime(); - String s = "Hello World"; - String[] a = { "echo", s }; - Process p = r.exec(a); - InputStream is = p.getInputStream(); - InputStreamReader isr = new InputStreamReader(is); - BufferedReader br = new BufferedReader(isr); - String result = br.readLine(); - if (! s.equals(result)) - { - System.out.println("bad 1"); - return; - } - result = br.readLine(); - if (result != null) - { - System.out.println("bad 2"); - return; - } - int c = p.waitFor(); - System.out.println(c == 0 ? "ok" : "bad 3"); - } - catch (Exception ex) - { - System.out.println(ex.toString()); - } - } -} -- cgit v1.1