You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Randy Kobes <ra...@theoryx5.uwinnipeg.ca> on 2004/07/11 01:29:06 UTC

[apreq-2] glue/perl/apreq/request.t test

Somewhat surprisingly, on Win32 the request.t test under
glue/perl/apreq/ fails on the "link" portion of the test
below because \r\n line endings are explictly inserted
at the end (there's a difference in length of 2 between
them on the link test). This patch:
======================================================
Index: glue/perl/t/apreq/request.t
===================================================================
RCS file: /home/cvs/httpd-apreq-2/glue/perl/t/apreq/request.t,v
retrieving revision 1.16
diff -u -r1.16 request.t
--- glue/perl/t/apreq/request.t	7 Jul 2004 23:53:01 -0000	1.16
+++ glue/perl/t/apreq/request.t	10 Jul 2004 23:21:45 -0000
@@ -22,7 +22,7 @@

 for my $test (qw/slurp bb tempname link fh io bad;query=string%%/) {
     # upload a string as a file
-    my $value = ('DataUpload' x 10 . "\r\n") x 1_000;
+    my $value = ('DataUpload' x 10 . "\n") x 1_000;
     my $result = UPLOAD_BODY("$location?test=$test", content => $value);
     ok t_cmp($value, $result, "basic upload");
     my $i;

===================================================================
just uses \n, and with it, all tests pass for me on Win32.

-- 
best regards,
randy