projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c010e
)
test: wait for 'close' event for stdout
author
isaacs
<i@izs.me>
Sun, 20 May 2012 12:40:10 +0000
(09:40 -0300)
committer
isaacs
<i@izs.me>
Sun, 20 May 2012 12:40:10 +0000
(09:40 -0300)
At the 'exit' event, it is sometimes not done writing to stdout.
test/simple/test-stdout-close-catch.js
patch
|
blob
|
history
diff --git
a/test/simple/test-stdout-close-catch.js
b/test/simple/test-stdout-close-catch.js
index
ab4342b
..
f517a6c
100644
(file)
--- a/
test/simple/test-stdout-close-catch.js
+++ b/
test/simple/test-stdout-close-catch.js
@@
-43,7
+43,7
@@
child.stderr.on('data', function(c) {
output += c;
});
-child.on('
exit
', function(code) {
+child.on('
close
', function(code) {
try {
output = JSON.parse(output);
} catch (er) {