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>
This commit is contained in:
parent
a78c2335b1
commit
101bda1b40
@ -1,15 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
var common = require('../common');
|
|
||||||
var assert = require('assert');
|
|
||||||
var spawn = require('child_process').spawn;
|
|
||||||
|
|
||||||
var child = spawn(process.execPath, ['--debug-brk=' + common.PORT]);
|
|
||||||
child.stderr.once('data', function(c) {
|
|
||||||
console.error('%j', c.toString());
|
|
||||||
child.stdin.end();
|
|
||||||
});
|
|
||||||
|
|
||||||
child.on('exit', function(c) {
|
|
||||||
assert(c === 0);
|
|
||||||
console.log('ok');
|
|
||||||
});
|
|
13
test/parallel/test-debug-brk-no-arg.js
Normal file
13
test/parallel/test-debug-brk-no-arg.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
'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);
|
||||||
|
}));
|
Loading…
x
Reference in New Issue
Block a user