joyent/node — comment on commit 22d7fe12067be32ac456045f8f2014526e4aabb4
File:  line 0
By koichik:

Hmm... I cannot reproduce it in my environment (Ubuntu 11.04 on VirtualBox on Windows):

$ ./node -v
v0.6.8-pre
$ ./node_g -v
v0.6.8-pre
$ python tools/test.py --mode=release,debug simple/test-event-emitter-check-listener-leaks
[00:00|% 100|+ 2|- 0]: Done

In your result, the following line (`2 listeners added`) is not printed:

(node) warning: possible EventEmitter memory leak detected. 2 listeners added. Use emitter.setMaxListeners() to increase limit.

It is printed out before assertion (by line 48):

$ ./node_g test/simple/test-event-emitter-check-listener-leaks
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace:
at EventEmitter. (events.js:139:15)
at Object. (/home/koichik/git/joyent/node-v0.6/test/simple/test-event-emitter-check-listener-leaks.js:32:3)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
(node) warning: possible EventEmitter memory leak detected. 6 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace:
at EventEmitter. (events.js:139:15)
at Object. (/home/koichik/git/joyent/node-v0.6/test/simple/test-event-emitter-check-listener-leaks.js:41:3)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
(node) warning: possible EventEmitter memory leak detected. 2 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace:
at EventEmitter. (events.js:139:15)
at Object. (/home/koichik/git/joyent/node-v0.6/test/simple/test-event-emitter-check-listener-leaks.js:48:3)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)