Skip to content

Commit ef8aa98

Browse files
committed
os: Add simple read/write test.
1 parent effbf07 commit ef8aa98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

os/test_rw.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import os
2+
3+
4+
assert os.write(1, "hello\n") == len("hello\n")
5+
data = os.read(0, 256)
6+
os.write(2, "read: %s\n" % data)

0 commit comments

Comments
 (0)