On Fri, Jul 09, 2004 at 07:27:28PM -0400, William McKee wrote: > Can anyone confirm/deny this behavior? In the meantime, I'll try to put > together a test script.
I've been able to reproduce the error using Geoff's skeleton. I almost thought I had it fixed, but it's a bit beyond my knowledge and skills (esp. on a Friday evening!). The problem appears to be due to headers not being sent when using Test::More. I found the code in Apache::Test which initializes a handler when `plan $r, tests => 10` is called. This sends a http header. I copied it into my bug-tm.pm response handler (t/response/TestApache/My/Bug) but am still getting 500 errors with nothing in the error_log. The test is available at my website[1]. The default version will work! I wanted to show that using Apache::Test normally in a response handler is working. You'll need to change the name of t/response/TestApache/My/Bug/bug-tm.pm.off so that it gets tested. In my tests, doing this causes both bug.t and bug-tm.t to fail. Thanks, William [1] http://knowmad.com/~william/testmore-bug.tar.gz -- Knowmad Services Inc. http://www.knowmad.com