On Wednesday, 07 December 2011 02:37:19 gAzZaLi wrote: > Another option is to 'use Test::More' explicitly: > (Do note that I have managed to segfault this) > > use Apache::Test qw(:withtestmore); > use Test::More;
As of Apache::Test 1.35++ this is wrong. Sorry about the interface change. The point is, up to 1.35 it was not possible to use Apache::Test with and without Test::More in the same interpreter. Now, if you "use Apache::Test" it marks the caller package to run without Test::More (it uses Test.pm instead). If you "use Apache::Test '-withtestmore'" the package is marked to use Test::More. Unfortunately, Test.pm based tests and Test::Builder based tests are incompatible. One cannot use Test::(ok|plan|whatever) and Test::More::(ok| plan|whatever) in the same interpreter. That's the source of the problem. Normally, when Test or Test::More is used in *.t files that does not matter. But with server based tests in modperl they must work in the same interpreter. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net
