Commit cde7853d by Eric Botcazou Committed by Eric Botcazou

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
parent 33a69702
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> 2005-01-01 Bryce McKinlay <mckinlay@redhat.com>
* include/boehm-gc.h: Include gc_ext_config.h, not gc_config.h. * include/boehm-gc.h: Include gc_ext_config.h, not gc_config.h.
......
...@@ -9,7 +9,8 @@ public class Process_4 ...@@ -9,7 +9,8 @@ public class Process_4
String[] a = { "false" }; String[] a = { "false" };
Process p = r.exec(a); Process p = r.exec(a);
int c = p.waitFor(); 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) catch (Exception ex)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment