From 07373747c7e709cadbe73dd024a11b8336034f6d Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 26 Oct 2014 12:24:11 +0200 Subject: tests: forgot some more files --- tests/test_sub_process.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_sub_process.js (limited to 'tests/test_sub_process.js') diff --git a/tests/test_sub_process.js b/tests/test_sub_process.js new file mode 100644 index 00000000..95f5126e --- /dev/null +++ b/tests/test_sub_process.js @@ -0,0 +1,9 @@ +var spawn = require('child_process').spawn; + +var ls = spawn('ls'); +ls.stdout.on('data', function (data) { + console.log('stdout ' + data.length); +}); +ls.on('close', function(code, signal) { + console.log('closed, ' + code + ', ' + signal); +}); -- cgit v1.3.1