aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2005-01-03 20:13:12 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2005-01-03 19:13:12 +0000
commitcde7853d20991c6fd1d5294ebf7b5b524df25608 (patch)
tree6b1085c5a6173a7cbe5265e1c4ae4a02f7a8f4a1 /libjava
parent33a697020b45656ce109a30a900a6f76fb2a503c (diff)
downloadgcc-cde7853d20991c6fd1d5294ebf7b5b524df25608.zip
gcc-cde7853d20991c6fd1d5294ebf7b5b524df25608.tar.gz
gcc-cde7853d20991c6fd1d5294ebf7b5b524df25608.tar.bz2
Process_4.java (Process_4): Expect only a non-zero exit status from 'false'.
* testsuite/libjava.lang/Process_4.java (Process_4): Expect only a non-zero exit status from 'false'. From-SVN: r92860
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/testsuite/libjava.lang/Process_4.java3
2 files changed, 7 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 8ad5dbf..6db73b1 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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.
diff --git a/libjava/testsuite/libjava.lang/Process_4.java b/libjava/testsuite/libjava.lang/Process_4.java
index 241dfde..1511a74 100644
--- a/libjava/testsuite/libjava.lang/Process_4.java
+++ b/libjava/testsuite/libjava.lang/Process_4.java
@@ -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)
{