X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Ftests%2FCallTest.java;h=1d57bceab3241f82c922c779b56115320bab7670;hp=978eb871016aee64694d843266b56f4533d6b957;hb=b11e7c6c29f2b5f7b0828bf93eb741c4a30ec411;hpb=c59b7cfc7a6b67574d38c5c8eb7732bad37236b0 diff --git a/src/tests/CallTest.java b/src/tests/CallTest.java index 978eb87..1d57bce 100644 --- a/src/tests/CallTest.java +++ b/src/tests/CallTest.java @@ -1,3 +1,7 @@ +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the Apache License 2.0 ("the License"). +// You may not use this file except in compliance with the License. + package tests; import org.ibex.nestedvm.Runtime; @@ -26,7 +30,7 @@ public class CallTest { case 1: return rt.strdup("OS: " + System.getProperty("os.name")); case 2: return rt.strdup(System.getProperty("os.version")); case 3: return rt.strdup(new Date().toString()); - case 4: return rt.addFD(new Runtime.OutputStreamFD(new CustomOS())); + case 4: return rt.addFD(new Runtime.InputOutputStreamFD(null,new CustomOS())); case 5: System.out.println("In callJava() in Java"); try { rt.call("backinmips"); } catch(Runtime.CallException e) { }