]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Process_4.java (Process_4): Expect only a non-zero exit status from 'false'.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 3 Jan 2005 19:13:12 +0000 (20:13 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 3 Jan 2005 19:13:12 +0000 (19:13 +0000)
* testsuite/libjava.lang/Process_4.java (Process_4): Expect only
a non-zero exit status from 'false'.

From-SVN: r92860

libjava/ChangeLog
libjava/testsuite/libjava.lang/Process_4.java

index 8ad5dbfe0f6fa87e914ea1ea438dfc75a28b9b03..6db73b18b3a4fabc1fa0f2103c40155fb9b3e361 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * testsuite/libjava.lang/Process_4.java (Process_4): Expect only
+       a non-zero exit status from 'false'.
+
 2005-01-01  Bryce McKinlay  <mckinlay@redhat.com>
 
        * include/boehm-gc.h: Include gc_ext_config.h, not gc_config.h.
index 241dfde816d40610edabef30a0fc7b72f4074d42..1511a74a6b2686cf28849b3d46718d6ccc0d3c01 100644 (file)
@@ -9,7 +9,8 @@ public class Process_4
        String[] a = { "false" };
        Process p = r.exec(a);
        int c = p.waitFor();
-       System.out.println(c == 1 ? "ok" : "bad");
+       // Solaris' false doesn't return 1.
+       System.out.println(c != 0 ? "ok" : "bad");
       }
     catch (Exception ex)
       {