RE: MP2 - Make test Error - t/api/request_rec.t
[prev]
[thread]
[next]
[Date index for 2005/01/10]
This is a multi-part message in MIME format.
------_=_NextPart_001_01C4F74F.55FF448B
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey Stas,
=20
Sorry, I have another question/problem.
=20
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.
=20
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?
=20
Thanks
-Chris
________________________________
From: cfaust-dougot [mailto:cfaust@xxxxxxxx.xxx]
Sent: Mon 1/10/2005 1:33 PM
To: Stas Bekman
Cc: modperl@xxxx.xxxxxx.xxx
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!!
=20
Thanks Again!
-Chris
=20
________________________________
From: Stas Bekman [mailto:stas@xxxxxx.xxx]
Sent: Mon 1/10/2005 11:17 AM
To: cfaust-dougot
Cc: modperl@xxxx.xxxxxx.xxx
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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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 =3D $r->hostname("other.hostname");
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
------_=_NextPart_001_01C4F74F.55FF448B
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">=0A=
=0A=
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">=0A=
<HTML>=0A=
<HEAD>=0A=
=0A=
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7226.0">=0A=
<TITLE>Re: MP2 - Make test Error - t/api/request_rec.t</TITLE>=0A=
</HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText40347 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>Hey =
Stas,</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Sorry, I have another =0A=
question/problem.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>After building and installing =
MP2 and =0A=
Apache with no problems at all, I'm running into that problem where if I =
refresh =0A=
the page I may get what I want or I may get a previous page/request, =
even in =0A=
single user mode.</FONT></DIV><FONT face=3DArial size=3D2></FONT></DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I'm having a hard time with =
this being a =0A=
scoping issue or something else with my code as its the same code that =
has been =0A=
running on mod_perl for over a year now on a different server, I didn't =
change a =0A=
thing when I brought it over.</FONT></DIV><FONT face=3DArial =
size=3D2></FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Is there anything I could =
have done during =0A=
the apache and/or mod_perl builds to do this?</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Thanks</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>-Chris</FONT></DIV>=0A=
<DIV dir=3Dltr><BR></DIV>=0A=
<DIV dir=3Dltr>=0A=
<HR tabIndex=3D-1>=0A=
</DIV>=0A=
<DIV dir=3Dltr><FONT face=3DTahoma size=3D2><B>From:</B> cfaust-dougot =0A=
[mailto:cfaust@xxxxxxxx.xxx]<BR><B>Sent:</B> Mon 1/10/2005 1:33 =
PM<BR><B>To:</B> =0A=
Stas Bekman<BR><B>Cc:</B> modperl@xxxx.xxxxxx.xxx<BR><B>Subject:</B> RE: =
MP2 - =0A=
Make test Error - t/api/request_rec.t<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<DIV id=3DidOWAReplyText1422 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>Thanks Stas, =
that did the =0A=
trick, test and install both ran without a problem!!</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Thanks Again!</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>-Chris</FONT></DIV>=0A=
<DIV dir=3Dltr> </DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> Stas Bekman =0A=
[mailto:stas@xxxxxx.xxx]<BR><B>Sent:</B> Mon 1/10/2005 11:17 =
AM<BR><B>To:</B> =0A=
cfaust-dougot<BR><B>Cc:</B> modperl@xxxx.xxxxxx.xxx<BR><B>Subject:</B> =
Re: MP2 - =0A=
Make test Error - t/api/request_rec.t<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>Chris Faust wrote:<BR>> Hi Stas,<BR>><BR>> =
Moving to a =0A=
new server and I'm rebuilding everything from scratch, I'm<BR>> =
getting a =0A=
single error during "make test" for "t/api/request_rec.t".<BR>> =
Didn't find =0A=
much info on it, saw a message from you to Ruslan Zakirov<BR>> which =
had the =0A=
error but the email was for a different problem.<BR><BR>> # testing : =0A=
$r->hostname<BR>> # expected: TAGTEAM-ES3<BR>> # received: =0A=
tagteam-es3<BR>> not ok 14<BR><BR>This patch should fix it, =0A=
Chris:<BR><BR>Index: =0A=
t/response/TestAPI/request_rec.pm<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D<BR>--- =0A=
t/response/TestAPI/request_rec.pm (revision 124805)<BR>+++ =0A=
t/response/TestAPI/request_rec.pm (working copy)<BR>@@ -60,7 =
+60,7 =0A=
@@<BR> # HTTP =0A=
1.0<BR> ok t_cmp $r->proto_num, 1000, =0A=
't->proto_num';<BR><BR>- ok t_cmp $r->hostname, =0A=
$r->get_server_name, '$r->hostname';<BR>+ ok =
t_cmp =0A=
lc($r->hostname), lc($r->get_server_name), =0A=
'$r->hostname';<BR><BR> =0A=
{<BR> my =
$old_hostname =3D =0A=
$r->hostname("other.hostname");<BR><BR><BR>--<BR>_____________________=
_____________________________________________<BR>Stas =0A=
Bekman =
JAm_pH =0A=
------> Just Another mod_perl Hacker<BR><A =0A=
href=3D"http://stason.org/">http://stason.org/</A>  =
; =0A=
mod_perl Guide ---> <A =0A=
href=3D"http://perl.apache.org">http://perl.apache.org</A><BR><A =0A=
href=3D"mailto:stas@xxxxxx.xxx">mailto:stas@xxxxxx.xxx</A> <A =0A=
href=3D"http://use.perl.org">http://use.perl.org</A> <A =0A=
href=3D"http://apacheweek.com">http://apacheweek.com</A><BR><A =0A=
href=3D"http://modperlbook.org">http://modperlbook.org</A> <A =0A=
href=3D"http://apache.org">http://apache.org</A> <A =0A=
href=3D"http://ticketmaster.com">http://ticketmaster.com</A><BR></FONT></=
P></DIV></DIV>=0A=
=0A=
</BODY>=0A=
</HTML>
------_=_NextPart_001_01C4F74F.55FF448B--