Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / libjava / testsuite / libjava.lang / Process_6.java
blob3bf015f760b3ce9957a2c67e5ce6bbd5f907477c
1 // Create a running process for a non existent executable.
2 // Verify that IOException is thrown.
3 import java.io.IOException;
6 public class Process_6
8 public static void main(String[] args)
10 try
12 int c;
13 Runtime r = Runtime.getRuntime();
14 String[] a = { "blablabla_failure" };
16 try
18 Process p = r.exec(a);
19 System.out.println("bad");
21 catch (IOException ioe)
23 System.out.println("ok");
26 catch (Exception ex)
28 System.out.println(ex.toString());