1 // Create a process and verify failure exit code.
4 public static void main(String
[] args
)
8 Runtime r
= Runtime
.getRuntime();
9 String
[] a
= { "false" };
10 Process p
= r
.exec(a
);
12 // Solaris' false doesn't return 1.
13 System
.out
.println(c
!= 0 ?
"ok" : "bad");
17 System
.out
.println(ex
.toString());