Title: Re: MP2 - Make test Error - t/api/request_rec.t
Hey Stas,
 
Sorry, I have another question/problem.
 
After building and installing MP2 and Apache with no problems at all, I'm running into that problem where if I refresh the page I may get what I want or I may get a previous page/request, even in single user mode.
 
I'm having a hard time with this being a scoping issue or something else with my code as its the same code that has been running on mod_perl for over a year now on a different server, I didn't change a thing when I brought it over.
Is there anything I could have done during the apache and/or mod_perl builds to do this?
 
Thanks
-Chris


From: cfaust-dougot [mailto:[EMAIL PROTECTED]
Sent: Mon 1/10/2005 1:33 PM
To: Stas Bekman
Cc: modperl@perl.apache.org
Subject: RE: MP2 - Make test Error - t/api/request_rec.t

Thanks Stas, that did the trick, test and install both ran without a problem!!
 
Thanks Again!
-Chris
 


From: Stas Bekman [mailto:[EMAIL PROTECTED]
Sent: Mon 1/10/2005 11:17 AM
To: cfaust-dougot
Cc: modperl@perl.apache.org
Subject: Re: MP2 - Make test Error - t/api/request_rec.t

Chris Faust wrote:
> Hi Stas,
>
> Moving to a new server and I'm rebuilding everything from scratch, I'm
> getting a single error during "make test" for "t/api/request_rec.t".
> Didn't find much info on it, saw a message from you to Ruslan Zakirov
> which had the error but the email was for a different problem.

> # testing : $r->hostname
> # expected: TAGTEAM-ES3
> # received: tagteam-es3
> not ok 14

This patch should fix it, Chris:

Index: t/response/TestAPI/request_rec.pm
===================================================================
--- t/response/TestAPI/request_rec.pm   (revision 124805)
+++ t/response/TestAPI/request_rec.pm   (working copy)
@@ -60,7 +60,7 @@
      # HTTP 1.0
      ok t_cmp $r->proto_num, 1000, 't->proto_num';

-    ok t_cmp $r->hostname, $r->get_server_name, '$r->hostname';
+    ok t_cmp lc($r->hostname), lc($r->get_server_name), '$r->hostname';

      {
          my $old_hostname = $r->hostname("other.hostname");


--
__________________________________________________________________
Stas Bekman            JAm_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

Reply via email to