+// 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.*;
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);