Skip to content

Commit

Permalink
test: fix setproctitle on FreeBSD
Browse files Browse the repository at this point in the history
PR-URL: #332
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
indutny committed Jan 13, 2015
1 parent ccc91ae commit 27e9ed6
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 27e9ed6

Please sign in to comment.