0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/test/parallel/test-debug-brk-no-arg.js
Rich Trott 101bda1b40 test: enable test-debug-brk-no-arg
Fix issues with disabled test-debug-brk-no-arg and re-enable the test.

PR-URL: https://github.com/nodejs/node/pull/7143
Reviewed-By: Fedor Indutny <fedor@indutny.com>
2016-06-06 17:09:31 -07:00

14 lines
378 B
JavaScript

'use strict';
const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;
const child = spawn(process.execPath, ['--debug-brk=' + common.PORT, '-i']);
child.stderr.once('data', common.mustCall(function() {
child.stdin.end('.exit');
}));
child.on('exit', common.mustCall(function(c) {
assert.strictEqual(c, 0);
}));