httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: libapreq-1: new 1.4 release?
Date Mon, 06 Dec 2004 19:59:46 GMT
David Wheeler wrote:

>> please relevant bits, or at least the last's run :) and also the  
>> output on the console. thanks.
> 
> 
> I thought the error log was deleted before each test.

if you run 'make test' or t/TEST -clean.

>> rm t/logs/error_log
>> t/TEST -v t/apreq/inherit
>>
>> doesn't look like anything is logged in error_log, the console should  
>> be:
>>
>> # testing : inheritance
>> # expected: method => GET
>> # received: method => GET
>> ok 1
> 
> 
> This is what I get:
> 
> t/apreq/inherit....1..1
> # Running under perl version 5.008005 for darwin
> # Current time local: Mon Dec  6 10:46:04 2004
> # Current time GMT:   Mon Dec  6 18:46:04 2004
> # Using Test.pm version 1.25
> # Using Apache/Test.pm version 1.16
> # testing : inheritance
> # expected:
> # received: method => GET
> not ok 1

(the args order was wrong now fixed, please update svn)

that's strange, looks like printf is not working, please try:

Index: t/response/TestApReq/inherit.pm
===================================================================
--- t/response/TestApReq/inherit.pm     (revision 109983)
+++ t/response/TestApReq/inherit.pm     (working copy)
@@ -7,7 +7,7 @@
      $r->send_http_header('text/plain');

      my $apr = Apache::Request->new($r);
-    printf "method => %s\n", $apr->method;
+    print "method => " . $apr->method . "\n";
      return OK;
  }

and if that doesn't work too (I recall people reporting print() function 
not working under MacOSX under modperl), please try:

Index: t/response/TestApReq/inherit.pm
===================================================================
--- t/response/TestApReq/inherit.pm     (revision 109983)
+++ t/response/TestApReq/inherit.pm     (working copy)
@@ -7,7 +7,7 @@
      $r->send_http_header('text/plain');

      my $apr = Apache::Request->new($r);
-    printf "method => %s\n", $apr->method;
+    $r->printf("method => %s\n", $apr->method);
      return OK;
  }


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message