mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
101bda1b40
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>
14 lines
378 B
JavaScript
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);
|
|
}));
|