Skip to content

Commit

Permalink
test: fix setproctitle on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jan 13, 2015
1 parent c731055 commit 36c79c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sequential/test-setproctitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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 += ' (node)';
if (process.platform === 'freebsd') title += ' (iojs)';

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

0 comments on commit 36c79c7

Please sign in to comment.