mirror of https://github.com/nodejs/node.git
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.archived-io.js-v0.10
parent
180f987147
commit
e4363145ba
|
@ -31,7 +31,10 @@ var common = require('../common');
|
|||
var assert = require('assert');
|
||||
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);
|
||||
process.title = title;
|
||||
|
|
Loading…
Reference in New Issue