Randy Kobes wrote:
Hi,
    One Win32, t/filter/out_str)subreq_default fails
on Win32 because of different line endings. This:
=====================================================
Index: out_str_subreq_default.t
===================================================================
RCS file: /home/cvs/modperl-2.0/t/filter/out_str_subreq_default.t,v
retrieving revision 1.1
diff -u -r1.1 out_str_subreq_default.t
--- out_str_subreq_default.t    4 Mar 2004 15:16:10 -0000       1.1
+++ out_str_subreq_default.t    24 Apr 2004 05:47:53 -0000
@@ -16,6 +16,7 @@

 my $expected = join '', $content1, $subrequest, $content2, $filter;
 my $received = GET_BODY $location;
+$received =~ s{\r}{}g;

 ok t_cmp($expected, $received,
     "testing filter-originated lookup_uri() call to core served URI");
=================================================================
fixes it, but perhaps there's a cleaner way?

+1, but please add '... if WIN32;' so it's clear why we do that.


What's strange is that this test exists for quite a while, and only now it stopped working? Or does it have to do with how the server side files were checked out?


-- __________________________________________________________________ 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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to