OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [Process_6.java] - Rev 781

Go to most recent revision | Compare with Previous | Blame | View Log

// Create a running process for a non existent executable.
// Verify that IOException is thrown.
import java.io.IOException;
 
 
public class Process_6
{
  public static void main(String[] args)
  {
    try
      {
	int c;
	Runtime r = Runtime.getRuntime();
	String[] a = { "blablabla_failure" };
 
	try
	  {
	    Process p = r.exec(a);
	    System.out.println("bad");
	  }
	catch (IOException ioe)
	  {
	    System.out.println("ok");
	  }
      }
    catch (Exception ex)
      {
	System.out.println(ex.toString());
      }
  }
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.