summaryrefslogtreecommitdiff
path: root/tests/echo.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/echo.py')
-rw-r--r--tests/echo.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/echo.py b/tests/echo.py
new file mode 100644
index 0000000..006364b
--- /dev/null
+++ b/tests/echo.py
@@ -0,0 +1,8 @@
+import os
+
+if __name__ == '__main__':
+ while True:
+ buf = os.read(0, 1024)
+ if not buf:
+ break
+ os.write(1, buf)