Skip to content

Commit

Permalink
test: remove hardwired references to 'iojs'
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 3, 2015
1 parent bd99e8d commit 98304ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/debugger/test-debugger-remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-process-argv-0.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});

Expand Down
3 changes: 2 additions & 1 deletion test/sequential/test-setproctitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,7 +26,7 @@ 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);
Expand Down

0 comments on commit 98304ca

Please sign in to comment.