var scriptToDebug = common.fixturesDir + '/empty.js';
function fail() {
- assert(0); // `iojs --debug-brk script.js` should not quit
+ assert(0); // `--debug-brk script.js` should not quit
}
// running with debug agent
assert.ok(expected == line, 'Got unexpected line: ' + line);
});
-// give iojs time to start up the debugger
+// allow time to start up the debugger
setTimeout(function() {
child.removeListener('exit', fail);
child.kill();
console.error('exec=%j', process.execPath);
if (process.argv[2] !== 'child') {
- var child = spawn('./iojs', [__filename, 'child'], {
+ var child = spawn(process.execPath, [__filename, 'child'], {
cwd: path.dirname(process.execPath)
});
var common = require('../common');
var assert = require('assert');
var exec = require('child_process').exec;
+var path = require('path');
// The title shouldn't be too long; libuv's uv_set_process_title() out of
// security considerations no longer overwrites envp, only argv, so the
assert.equal(stderr, '');
// freebsd always add ' (procname)' to the process title
- if (process.platform === 'freebsd') title += ' (iojs)';
+ if (process.platform === 'freebsd')
+ title += ` (${path.basename(process.execPath)})`;
// omitting trailing whitespace and \n
assert.equal(stdout.replace(/\s+$/, ''), title);