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
Ben Noordhuis 2013-07-25 12:24:40 +02:00
parent 180f987147
commit e4363145ba
1 changed files with 4 additions and 1 deletions

View File

@ -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;