Doug MacEachern wrote:

> On Sun, 26 Aug 2001, Stas Bekman wrote:
>  
> 
>>+    # $thaw wasn't blessed
>>+    if (ref $thaw eq 'HASH') {
>>+        die "couldn't find apache_test_config.pm";
>>+    }
>>+
>>
> 
> this isn't right, it will die whenever things are clean.
> maybe you meant to do that only if $args->{thaw} ?

I don't know, I'm trying to add APACHE_TEST_CONFIGURE optional sub as 
discussed before. Everytime I mess something up, I cannot start the 
server anymore, neither 'make clean' or ./t/TEST -clean will work.
with the error "
I've to checkout the whole tree from scratch.

Apache::TestConfig::new gets called 3 times during './t/TEST' and 
receives twice a class name and once the real object, which breaks the 
code, when you try to bless {...}, $class

since it's not a class.


I've tried doing:

$class = ref $class || $class;

but nothing would happen then.

 

Help is appreciated, since I'm really stuck here :(


>> sub find_apache_module {
>>     my($self, $module) = @_;
>>+
>>+    warn "module is not defined",
>>+        return undef unless $module;
>>
> 
> don't you want colored warning? :)


that's for the final patch :)






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to