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:
10f85fa
)
test-child-process-kill: make it pass on windows
author
Bert Belder
<bertbelder@gmail.com>
Tue, 12 Jun 2012 20:39:55 +0000
(22:39 +0200)
committer
Bert Belder
<bertbelder@gmail.com>
Tue, 12 Jun 2012 21:30:57 +0000
(23:30 +0200)
The test would fail if the child process writes anything to the stdout.
This doesn't happen on unix, since `cat` is spawned. However, on Windows
`cmd` is started, which *does* write stuff to it's stdout. This
meanlingless assert is now removed.
test/simple/test-child-process-kill.js
patch
|
blob
|
history
diff --git
a/test/simple/test-child-process-kill.js
b/test/simple/test-child-process-kill.js
index
7bb57a5
..
08a0185
100644
(file)
--- a/
test/simple/test-child-process-kill.js
+++ b/
test/simple/test-child-process-kill.js
@@
-37,10
+37,6
@@
var gotStderrEOF = false;
var cat = spawn(is_windows ? 'cmd' : 'cat');
-cat.stdout.on('data', function(chunk) {
- assert.ok(false);
-});
-
cat.stdout.on('end', function() {
gotStdoutEOF = true;
});