test-perl-framework test fails for apache 2.0

2004-04-09 Thread Abhishek Khandelwal
Hi Stas,

I installed apache httpd and the usual Apache::TestBundle.
Finally when I run the tests, I get this error in ssl/http.t module

Anyone has idea about what might be missing in the configuration or is
it a bug in apache 2.0?

This is the error I get::

---

ssl/http.response had protocol HTTP/0.9 (headers not
sent?) at ssl/http.t line 27
dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 170) line 1, near 'int' 
$__val
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
(Missing operator before   $__val?)

--

Please help

Abhishek



Re: test-perl-framework test fails for apache 2.0

2004-04-09 Thread Stas Bekman
Abhishek Khandelwal wrote:
Hi Stas,
I installed apache httpd and the usual Apache::TestBundle.
Finally when I run the tests, I get this error in ssl/http.t module
Anyone has idea about what might be missing in the configuration or is
it a bug in apache 2.0?
This is the error I get::
---
ssl/http.response had protocol HTTP/0.9 (headers not
sent?) at ssl/http.t line 27
dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 170) line 1, near 'int' 
$__val
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
(Missing operator before   $__val?)

--
May be you don't have LWP installed?
--
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: test-perl-framework test fails for apache 2.0

2004-04-09 Thread Stas Bekman
Abhishek Khandelwal wrote:
I am not sure about it?
How do I check whether its installed or not?
perl -MLWP -le 'print LWP-VERSION'
In case it is not installed how do I install?
would be from CPAN.. install LWP?
yup
--
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: t_cmp oddities

2004-04-09 Thread William McKee
On Thu, Apr 08, 2004 at 10:56:06AM -0700, Stas Bekman wrote:
 Yes, I'm aware of this problem too. I sometimes use a different workaround. 
 Using Geoff's one liner:

OK, I'll use this method.


 Also William can you check what Test::More does to deal with this problem? 
 Eventually we may drop t_cmp completely and move into Test::More, whose API 
 is much reacher and you better use it from the very beginning instead of 
 Apache::TestUtil, if you can afford requiring Test::More.

All tests in the following script pass:

-
   use Test::More tests = 2;
   
   # Test scripts for Stas
   is (
   undef,
   get_undef,
   Retrieve undef from subroutine
  );
   my $rv = get_undef;
   is (
   undef,
   $rv,
   Retrieve undef from subroutine - use variable for
   comparison
  );
   
   sub get_undef {
   return;
   }
-


I like that idea of adopting all of T::M. However, does T::M have a
comparable function to t_cmp that gives the expected and received
values? I *really* like the verbose output that t_cmp gives!


William

-- 
Knowmad Services Inc.
http://www.knowmad.com