X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftests%2FEcho.java;h=399ff3c7089bb42b0f0ffaa9095dcc350126c99a;hb=b5282b0a1a8ca5212c75623610be6d0483fd35bd;hp=d54d11d0ce910643a2ce79f0a005e61ff6bb7d07;hpb=ae52817e5cb153f781b76f5d525e127f217b5482;p=nestedvm.git diff --git a/src/tests/Echo.java b/src/tests/Echo.java index d54d11d..399ff3c 100644 --- a/src/tests/Echo.java +++ b/src/tests/Echo.java @@ -1,3 +1,7 @@ +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the Apache Public Source License 2.0 ("the License"). +// You may not use this file except in compliance with the License. + package tests; import java.net.*; @@ -21,10 +25,10 @@ public class Echo { Runtime task = (Runtime) Class.forName("tests.EchoHelper").newInstance(); task.closeFD(0); task.closeFD(1); - task.closeFD(2); - task.addFD(new Runtime.InputStreamFD(sock.getInputStream())); - task.addFD(new Runtime.OutputStreamFD(sock.getOutputStream())); - task.dupFD(1); + //task.closeFD(2); + task.addFD(new Runtime.InputOutputStreamFD(sock.getInputStream())); + task.addFD(new Runtime.InputOutputStreamFD(sock.getOutputStream())); + //task.dupFD(1); int status = task.run(new String[]{"EchoHelper"} ); System.err.println("Exit status: " + status);