Julian Dunn <jdunn at aquezada.com> wrote:> > I was trying to run Unicorn 4.5.0''s tests and I''m
getting this. Am I doing something wrong?
> >
> > [vagrant at localhost unicorn-4.5.0]$ testrb -Ilib -Iext/unicorn_http
-I. test
I''m not sure what testrb is doing, I never use it. I can reproduce
your error and it''s not obvious what''s causing it...
Anyways, the following works for me:
ruby -Ilib -Iext/unicorn_http -I. test/unit/test_tee_input.rb
However, I normally just run:
make -j$(nproc) test-all
from a git checkout...
Despite the filenames, most of the tests for unicorn aren''t unit tests.
They interact with the entire process (trapping signals, forking,
exiting, etc...).
Thus, test runners relying on exit/at_exit hooks (especially if nested
like testrb seems to do) probably triggers some strange behavior...