Stas Bekman wrote:

>Steve Hay wrote:
>  
>
>>and I now have two other tests (apr/util and modperl/exit) 
>>failing too (on their own, that is, not just after apr/pool).
>>    
>>
>
>What do you mean 'now', there weren't failing yesterday and started to fail now?
>
Yes -- they work in 1.99_14, but not using the CVS that I just grabbed

>
>The common things for some of these tests is that they use methods that throw 
>exceptions. But it could be something else.
>
>apr/util is not one of them, and it uses a very simple XS wrapper. Though this 
>is what I've added recently:
>
>     my $clear = "pass1";
>     my $hash  = "1fWDc9QWYCWrQ";
>     ok APR::Util::password_validate($clear, $hash);
>
>it's quite possible that this doesn't work on windows. It really does crypt. 
>Try replacing hardcoded hash of the password with crypt:
>
>
>Index: t/response/TestAPR/util.pm
>===================================================================
>RCS file: /home/cvs/modperl-2.0/t/response/TestAPR/util.pm,v
>retrieving revision 1.8
>diff -u -r1.8 util.pm
>--- t/response/TestAPR/util.pm  22 May 2004 21:47:32 -0000      1.8
>+++ t/response/TestAPR/util.pm  25 May 2004 08:16:52 -0000
>@@ -23,7 +23,7 @@
>      ok ! APR::Util::password_validate("one", "two");
>
>      my $clear = "pass1";
>-    my $hash  = "1fWDc9QWYCWrQ";
>+    my $hash  = crypt $clear, 'FE';
>      ok APR::Util::password_validate($clear, $hash);
>
>      Apache::OK;
>
>Does this make any difference?
>
No, although the hardcoded hash is different to what crypt() returns in 
my Perl:

C:\Temp\modperl-2.0>perl -e "print crypt 'pass1', 'FE'"
FExG070GemhK6

>
>Also how does modperl/exit fail?
>
Reported in a new thread.

- Steve



------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender immediately.  The 
unauthorized use, disclosure, copying or alteration of this message is strictly 
forbidden.  Note that any views or opinions presented in this email are solely those 
of the author and do not necessarily represent those of Radan Computational Ltd.  The 
recipient(s) of this message should check it and any attached files for viruses: Radan 
Computational will accept no liability for any damage caused by any virus transmitted 
by this email.


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

Reply via email to