summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 19:13:12 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 19:13:12 +0000
commit7229ff38143252a174108e998c397190c13a289a (patch)
tree6b1085c5a6173a7cbe5265e1c4ae4a02f7a8f4a1 /libjava
parent510a599ac0691780543931f54e2c11252024fef6 (diff)
downloadgcc-7229ff38143252a174108e998c397190c13a289a.tar.gz
* testsuite/libjava.lang/Process_4.java (Process_4): Expect only
a non-zero exit status from 'false'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92860 138bc75d-0d04-0410-961f-82ee72b054a4
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 8ad5dbfe0f6..6db73b18b3a 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 241dfde816d..1511a74a6b2 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)
{