diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-25 12:24:40 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-07-25 12:29:20 +0200 |
commit | e4363145bad7fe1bd63fbb2d41101de38477e7fb (patch) | |
tree | 0abd039651c9ddf8e3e25ff96a607abb2bc0b9dd | |
parent | 180f9871476dbc4b2f406ffe81c4e50c6b1fe518 (diff) | |
download | node-e4363145bad7fe1bd63fbb2d41101de38477e7fb.tar.gz |
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.
-rw-r--r-- | test/simple/test-setproctitle.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/simple/test-setproctitle.js b/test/simple/test-setproctitle.js index 778e20012..6373af4cd 100644 --- a/test/simple/test-setproctitle.js +++ b/test/simple/test-setproctitle.js @@ -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; |