Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
5ac719d
doc: add deprecations page to docs toc
targos Apr 7, 2017
1ee38eb
util: add %i and %f formatting specifiers
silverwind Dec 16, 2016
6130d54
deps: backport 8dde6ac from upstream V8
danbev Mar 27, 2017
fdf76d5
tools: add missing #include "unicode/putil.h"
srl295 Mar 27, 2017
87ca9a6
test: fix flaky child-process-exec-kill-throws
Trott Mar 29, 2017
8823861
tools: update dotfile whitelist in .gitignore
targos Mar 29, 2017
ffbcfdf
src: fix base64 decoding
seishun Mar 22, 2017
2f88de1
vm: use SetterCallback to set func declarations
AnnaMag Mar 26, 2017
305f822
net: rename internal functions for readability
joyeecheung Mar 11, 2017
b5283f9
doc: add logo to README
silverwind Mar 31, 2017
6ccbf38
test: synchronize WPT url setter test data
watilde Apr 3, 2017
b52b3f6
test: reduce buffer size in buffer-creation test
thefourtheye Feb 5, 2017
3af9101
doc, inspector: note that the host is optional
gibfahn Mar 28, 2017
72a27b3
build: use $(RM) in Makefile for consistency
gibfahn Apr 1, 2017
b15dc95
test: fix flaky test-child-process-exec-timeout
santigimeno Apr 1, 2017
f057cc3
benchmark: replace [].join() with ''.repeat()
vsemozhetbyt Apr 2, 2017
d6e9cf7
doc: fix and update examples in http.md
vsemozhetbyt Apr 2, 2017
fb34d9c
test: increase querystring coverage
davidtaikocha Apr 2, 2017
805ebef
buffer: optimize decoding wrapped base64 data
aqrln Mar 31, 2017
9e6b0a4
test: performance, remove Popen(shell=True) on Win
refack Mar 30, 2017
36617fd
doc: add notes to http.get options
raphaelokon Mar 29, 2017
731a200
doc: update Mac OS X references in releases.md
Mar 29, 2017
8058bae
tools: update ESLint to 3.19.0
Trott Apr 2, 2017
c814c7e
events: do not keep arrays with a single listener
lpinca Mar 25, 2017
806c4f3
doc: fix fs.read arg type
darai0512 Mar 26, 2017
cf1117b
doc: fix the timing of setImmediate's execution
darai0512 Mar 26, 2017
6083e7a
benchmark: avoid TurboFan deopt in arrays bench
targos Mar 17, 2017
a11ed6a
test: more robust check for location of `node.exe`
refack Mar 29, 2017
961c89c
doc: add table of contents to README.md
Minimalistic Mar 1, 2017
8caf6fd
test: add Unicode characters regression test
aqrln Feb 16, 2017
4b54520
test: refactor mkdtemp test and added async
lucamaraschi Mar 27, 2017
74d0266
doc: fix string interpolation in Stream 'finish'
vhmth Apr 4, 2017
f60b455
doc: modernize and fix code examples in https.md
vsemozhetbyt Apr 2, 2017
b495b6a
build: make configure print statements consistent
danbev Apr 3, 2017
a703bde
build: add checks for openssl configure options
danbev Apr 3, 2017
6feea08
buffer: preallocate array with buffer length
alemures Mar 7, 2017
d641164
doc: update pull request template URL layout
Trott Apr 4, 2017
a735c16
deps: backport ec1ffe3 from upstream V8
danbev Mar 27, 2017
d4d6986
build: fix path voodoo in icu-generic.gyp
refack Mar 30, 2017
3cdd04b
test: skip irrelevant test on Windows
Trott Apr 6, 2017
ac200a6
test: add a second argument to assert.throws()
dave-k Mar 30, 2017
2fb2289
doc: add sub domain to host in url
styfle Apr 5, 2017
83f855d
doc: add aqrln to collaborators
aqrln Apr 7, 2017
c0b7c07
doc: add refack to collaborators
refack Apr 7, 2017
376f5ef
doc: document the performance team
gibfahn Apr 4, 2017
3e8991c
doc: modernize and fix code examples in modules.md
vsemozhetbyt Apr 5, 2017
4a6bb37
doc: fix confusing reference in net.md
vsemozhetbyt Apr 5, 2017
6826637
doc: fix missing argument for dns.resolvePtr()
uppinder Apr 7, 2017
0f4319a
src: use std::string for trace enabled_categories
sam-github Apr 5, 2017
2f9e2fc
doc: update information on test/known_issues
Apr 6, 2017
37568c0
src: use std::list for at_exit_functions
danbev Apr 6, 2017
3b765f5
doc: fix confusing example in process.md
vsemozhetbyt Apr 8, 2017
67d2114
crypto: handle exceptions in hmac/hash.digest
tniessen Apr 2, 2017
c11c23b
doc: make the heading consistent
thefourtheye Feb 26, 2017
b997e62
test: add internal/socket_list tests
davidtaikocha Mar 29, 2017
77353b3
tools: ignore URLs in line length linting
Trott Mar 17, 2017
211dd16
benchmark: add final clean-up to module-loader.js
vsemozhetbyt Mar 19, 2017
9f73df5
deps: cherry-pick 22858cb from V8 upstream
ofrobots Mar 23, 2017
0794478
2017-04-11, Version 7.9.0 (Current)
Apr 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix flaky child-process-exec-kill-throws
This is a fix for test-child-process-exec-kill-throws which is currently
flaky on Windows.

A bug in the test was causing the child process to fail for reasons
other than those intended by the test. Instead of failing for exceeding
the `maxBuffer` setting, the test was failing because it was trying to
load `internal/child_process` without being passed the
`expose-internals` flag. Move that module to where only the parent
process (which gets the flag) loads it.

Additionally, improve an assertion message to help debug problems like
this.

PR-URL: #12111
Fixes: #12053
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
Trott authored and Italo A. Casas committed Apr 10, 2017
commit 87ca9a6ffe30077ecf146fd41fa7f9e8e255cc9c
3 changes: 0 additions & 3 deletions test/parallel/parallel.status
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ prefix parallel
[true] # This section applies to all platforms

[$system==win32]
# See https://github.com/nodejs/node/issues/12053, this test may be exposing a
# genuine bug with kill() on Windows.
test-child-process-exec-kill-throws : PASS,FLAKY

[$system==linux]

Expand Down
9 changes: 5 additions & 4 deletions test/parallel/test-child-process-exec-kill-throws.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
const common = require('../common');
const assert = require('assert');
const cp = require('child_process');
const internalCp = require('internal/child_process');

if (process.argv[2] === 'child') {
// Keep the process alive and printing to stdout.
setInterval(() => { console.log('foo'); }, 1);
// Since maxBuffer is 0, this should trigger an error.
console.log('foo');
} else {
const internalCp = require('internal/child_process');

// Monkey patch ChildProcess#kill() to kill the process and then throw.
const kill = internalCp.ChildProcess.prototype.kill;

Expand All @@ -21,7 +22,7 @@ if (process.argv[2] === 'child') {
const options = { maxBuffer: 0 };
const child = cp.exec(cmd, options, common.mustCall((err, stdout, stderr) => {
// Verify that if ChildProcess#kill() throws, the error is reported.
assert(/^Error: mock error$/.test(err));
assert.strictEqual(err.message, 'mock error', err);
assert.strictEqual(stdout, '');
assert.strictEqual(stderr, '');
assert.strictEqual(child.killed, true);
Expand Down