diff options
author | Andrew Haley <aph@redhat.com> | 2016-09-30 16:24:48 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2016-09-30 16:24:48 +0000 |
commit | 07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch) | |
tree | 3f22b3241c513ad168c8353805614ae1249410f4 /libjava/testsuite/libjava.lang/Process_5.java | |
parent | eae993948bae8b788c53772bcb9217c063716f93 (diff) | |
download | gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2 |
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com>
* Makefile.def: Remove libjava.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.
* configure.ac: Likewise.
* configure: Likewise.
* gcc/java: Remove.
* libjava: Likewise.
From-SVN: r240662
Diffstat (limited to 'libjava/testsuite/libjava.lang/Process_5.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/Process_5.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/libjava/testsuite/libjava.lang/Process_5.java b/libjava/testsuite/libjava.lang/Process_5.java deleted file mode 100644 index 61fd5b7..0000000 --- a/libjava/testsuite/libjava.lang/Process_5.java +++ /dev/null @@ -1,43 +0,0 @@ -// Create a long running process and verify that the exitValue is not -// immediately available. Then destroy() it and verify that it -// terminates quickly with a non-zero exitValue. -public class Process_5 -{ - public static void main(String[] args) - { - try - { - int c; - long startTime = System.currentTimeMillis(); - Runtime r = Runtime.getRuntime(); - String[] a = { "sleep", "120" }; - Process p = r.exec(a); - - try - { - c = p.exitValue(); - System.out.println("bad 1"); - return; - } - catch (IllegalThreadStateException itse) - { - // Ignore as this is good here. - } - - p.destroy(); - - c = p.waitFor(); - - long endTime = System.currentTimeMillis(); - - if (endTime - startTime > 110000L) - System.out.println("bad 2"); - - System.out.println(c != 0 ? "ok" : "bad 3"); - } - catch (Exception ex) - { - System.out.println(ex.toString()); - } - } -} |