imported brians code
[nestedvm.git] / src / tests / FDTest.java
diff --git a/src/tests/FDTest.java b/src/tests/FDTest.java
new file mode 100644 (file)
index 0000000..52c70db
--- /dev/null
@@ -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