about summary refs log tree commit homepage
path: root/t/cgi.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-12 22:41:10 +0000
committerEric Wong <e@80x24.org>2015-08-12 22:41:42 +0000
commit2981d6929f400630e575bcc8fc1851bc531e73e9 (patch)
tree288eed02c331341ccd9daeda455c0804996f9d70 /t/cgi.t
parenteb7d646477c5b514c340f66da1be04c754879e17 (diff)
downloadpublic-inbox-2981d6929f400630e575bcc8fc1851bc531e73e9.tar.gz
This fixes a minor test failure in t/cgi.t

Tested with perl 5.18.2-2ubuntu1 on Ubuntu 14.04.3 LTS
Diffstat (limited to 't/cgi.t')
-rw-r--r--t/cgi.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/cgi.t b/t/cgi.t
index b59ca54a..a16ebd8d 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -120,7 +120,9 @@ EOF
         like($res->{head}, qr/Status: 200 OK/, "index returns 200");
 
         my $idx = cgi_run("/test/index.html");
-        $idx->{body} =~ s!/index.html(\?r=)!/$1!; # dirty...
+        $idx->{body} =~ s!/index.html(\?r=)!/$1!g; # dirty...
+        $idx->{body} = [ split(/\n/, $idx->{body}) ];
+        $res->{body} = [ split(/\n/, $res->{body}) ];
         is_deeply($res, $idx,
                 '/$LISTNAME/ and /$LISTNAME/index.html are nearly identical');
         # more checks in t/feed.t