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
This commit is contained in:
parent
33a697020b
commit
cde7853d20
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue