X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Ftests%2FFDTest.java;fp=src%2Ftests%2FFDTest.java;h=52c70dbacebbdbb996b03419010f71d02507a2de;hb=3eb15f58ca0911489d7d9bdc0ac2c575d27a68d8;hp=0000000000000000000000000000000000000000;hpb=a6ee28ca37621098ed040e6d1c4ae103934c3e97;p=nestedvm.git diff --git a/src/tests/FDTest.java b/src/tests/FDTest.java new file mode 100644 index 0000000..52c70db --- /dev/null +++ b/src/tests/FDTest.java @@ -0,0 +1,15 @@ +package tests; + +import org.xwt.mips.Runtime; + +public class FDTest { + public static void main(String[] args) throws Exception { + Runtime rt = new Test(); + int fd = rt.allocFDEnt(new Runtime.SeekableInputStreamFD(System.in)); + int status = rt.run(new String[]{"test","fdtest","/dev/fd/" + fd}); + System.err.println("Exit status: " + status); + } +} + + + \ No newline at end of file