Skip to content

Commit f78c722

Browse files
rvaggsilverwind
authored andcommitted
test: remove hardwired references to 'iojs'
PR-URL: #1882 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent bd99e8d commit f78c722

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

test/debugger/test-debugger-remote.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var expected = [];
99
var scriptToDebug = common.fixturesDir + '/empty.js';
1010

1111
function fail() {
12-
assert(0); // `iojs --debug-brk script.js` should not quit
12+
assert(0); // `--debug-brk script.js` should not quit
1313
}
1414

1515
// running with debug agent
@@ -37,7 +37,7 @@ interfacer.on('line', function(line) {
3737
assert.ok(expected == line, 'Got unexpected line: ' + line);
3838
});
3939

40-
// give iojs time to start up the debugger
40+
// allow time to start up the debugger
4141
setTimeout(function() {
4242
child.removeListener('exit', fail);
4343
child.kill();

test/parallel/test-process-argv-0.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ console.error('argv=%j', process.argv);
99
console.error('exec=%j', process.execPath);
1010

1111
if (process.argv[2] !== 'child') {
12-
var child = spawn('./iojs', [__filename, 'child'], {
12+
var child = spawn(process.execPath, [__filename, 'child'], {
1313
cwd: path.dirname(process.execPath)
1414
});
1515

test/sequential/test-setproctitle.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if ('linux freebsd darwin'.indexOf(process.platform) === -1) {
1010
var common = require('../common');
1111
var assert = require('assert');
1212
var exec = require('child_process').exec;
13+
var path = require('path');
1314

1415
// The title shouldn't be too long; libuv's uv_set_process_title() out of
1516
// 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) {
2526
assert.equal(stderr, '');
2627

2728
// freebsd always add ' (procname)' to the process title
28-
if (process.platform === 'freebsd') title += ' (iojs)';
29+
if (process.platform === 'freebsd')
30+
title += ` (${path.basename(process.execPath)})`;
2931

3032
// omitting trailing whitespace and \n
3133
assert.equal(stdout.replace(/\s+$/, ''), title);

0 commit comments

Comments
 (0)