test: pause child until parent is ready

Pause child on startup using inspect-brk=0 until the parent debugger
is ready.

PR-URL: https://github.com/nodejs/node/pull/15774
Fixes: https://github.com/nodejs/node/issues/14897
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
jBarz 2017-10-04 01:18:00 -04:00 committed by Michael Dawson
parent d4471e06e8
commit f1f0eb2595
2 changed files with 1 additions and 3 deletions

View File

@ -10,7 +10,6 @@ prefix sequential
test-inspector-async-call-stack : PASS, FLAKY
test-inspector-bindings : PASS, FLAKY
test-inspector-debug-end : PASS, FLAKY
test-inspector-stop-profile-after-done: PASS, FLAKY
[$system==linux]
@ -21,4 +20,3 @@ test-inspector-stop-profile-after-done: PASS, FLAKY
[$system==freebsd]
[$system==aix]
test-inspector-stop-profile-after-done: PASS, FLAKY

View File

@ -5,7 +5,7 @@ const assert = require('assert');
const { NodeInstance } = require('../common/inspector-helper.js');
async function runTests() {
const child = new NodeInstance(['--inspect=0'],
const child = new NodeInstance(['--inspect-brk=0'],
`let c = 0;
const interval = setInterval(() => {
console.log(new Object());