* configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
[official-gcc.git] / libjava / testsuite / libjava.lang / Process_4.java
blob241dfde816d40610edabef30a0fc7b72f4074d42
1 // Create a process and verify failure exit code.
2 public class Process_4
4 public static void main(String[] args)
6 try
8 Runtime r = Runtime.getRuntime();
9 String[] a = { "false" };
10 Process p = r.exec(a);
11 int c = p.waitFor();
12 System.out.println(c == 1 ? "ok" : "bad");
14 catch (Exception ex)
16 System.out.println(ex.toString());