test: remove hardwired references to 'iojs'

PR-URL: https://github.com/nodejs/io.js/pull/1882
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
Rod Vagg 2015-06-03 21:37:25 +10:00 committed by Roman Reiss
parent bd99e8de8e
commit f78c722df5
3 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,7 @@ var expected = [];
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
@ -37,7 +37,7 @@ interfacer.on('line', function(line) {
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();

View File

@ -9,7 +9,7 @@ console.error('argv=%j', process.argv);
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)
});

View File

@ -10,6 +10,7 @@ if ('linux freebsd darwin'.indexOf(process.platform) === -1) {
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
@ -25,7 +26,8 @@ exec('ps -p ' + process.pid + ' -o args=', function(error, stdout, stderr) {
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);