GeezerVison is showing github.com — test: remove hardwired references to 'iojs' · nodejs/node@f78c722
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: test/debugger/test-debugger-remote.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ var expected = []; | 9 | 9 | var scriptToDebug = common.fixturesDir + '/empty.js'; | 10 | 10 |
| 11 | 11 | function fail() { | 12 | | - assert(0); // `iojs --debug-brk script.js` should not quit | | 12 | + assert(0); // `--debug-brk script.js` should not quit | 13 | 13 | } | 14 | 14 |
| 15 | 15 | // running with debug agent | @@ -37,7 +37,7 @@ interfacer.on('line', function(line) { | 37 | 37 | assert.ok(expected == line, 'Got unexpected line: ' + line); | 38 | 38 | }); | 39 | 39 |
| 40 | | -// give iojs time to start up the debugger | | 40 | +// allow time to start up the debugger | 41 | 41 | setTimeout(function() { | 42 | 42 | child.removeListener('exit', fail); | 43 | 43 | child.kill(); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-process-argv-0.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ console.error('argv=%j', process.argv); | 9 | 9 | console.error('exec=%j', process.execPath); | 10 | 10 |
| 11 | 11 | if (process.argv[2] !== 'child') { | 12 | | - var child = spawn('./iojs', [__filename, 'child'], { | | 12 | + var child = spawn(process.execPath, [__filename, 'child'], { | 13 | 13 | cwd: path.dirname(process.execPath) | 14 | 14 | }); | 15 | 15 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/sequential/test-setproctitle.js +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,6 +10,7 @@ if ('linux freebsd darwin'.indexOf(process.platform) === -1) { | 10 | 10 | var common = require('../common'); | 11 | 11 | var assert = require('assert'); | 12 | 12 | var exec = require('child_process').exec; | | 13 | +var path = require('path'); | 13 | 14 |
| 14 | 15 | // The title shouldn't be too long; libuv's uv_set_process_title() out of | 15 | 16 | // 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) { | 25 | 26 | assert.equal(stderr, ''); | 26 | 27 |
| 27 | 28 | // 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)})`; | 29 | 31 |
| 30 | 32 | // omitting trailing whitespace and \n | 31 | 33 | assert.equal(stdout.replace(/\s+$/, ''), title); | |
|