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_01C4F743.0BA71DB7
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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_01C4F743.0BA71DB7
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=
<!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=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>=0A=
=0A=
</BODY>=0A=
</HTML>
------_=_NextPart_001_01C4F743.0BA71DB7--
 |
 |
RE: MP2 - Make test Error - t/api/request_rec.t
cfaust-dougot 18:33 on 10 Jan 2005
|