diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-03-08 10:27:20 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-03-08 10:27:20 +0000 |
commit | 0e4d64e3e5bf64e78e426656425ce063669eb071 (patch) | |
tree | bb88c527cc28f896e979d046cc55e7d7e11487bb /tests/test-subprocess.lua | |
parent | 3794c1da35362b551cb16fc94f928fd525294fc2 (diff) | |
download | luxio-0e4d64e3e5bf64e78e426656425ce063669eb071.tar.gz |
TESTS: Add subprocess test
Diffstat (limited to 'tests/test-subprocess.lua')
-rw-r--r-- | tests/test-subprocess.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-subprocess.lua b/tests/test-subprocess.lua new file mode 100644 index 0000000..06f7757 --- /dev/null +++ b/tests/test-subprocess.lua @@ -0,0 +1,13 @@ +sp = require 'luxio.subprocess' + +proc = sp.spawn_simple { + "ls", "/", + stdout = sp.PIPE +} + +listing = proc.stdout:read("*a") +proc.stdout:close() + +print(proc:wait()) + +print(listing) |