Browse Source

test: fix simple/test-setproctitle

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
maximum title length is possibly quite short.

Fixes #5908.
v0.10.16-release
Ben Noordhuis 11 years ago
parent
commit
e4363145ba
  1. 5
      test/simple/test-setproctitle.js

5
test/simple/test-setproctitle.js

@ -31,7 +31,10 @@ var common = require('../common');
var assert = require('assert'); var assert = require('assert');
var exec = require('child_process').exec; var exec = require('child_process').exec;
var title = 'testTestTESTtest123123123123123123HiHaiJo'; // 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
// maximum title length is possibly quite short.
var title = 'testme';
assert.notEqual(process.title, title); assert.notEqual(process.title, title);
process.title = title; process.title = title;

Loading…
Cancel
Save