Re: [Maypole] [ANNOUNCE] Maypole 2.09

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Wed Jan 26 2005 - 10:20:15 GMT


Hi Simon,

I still see the CGI test failure. Here's a patch for the test:

--- cgi_maypole.t.orig Tue Jan 25 22:06:59 2005
+++ cgi_maypole.t Wed Jan 26 10:17:59 2005
@@ -108,11 +108,13 @@
      };
      diag $@ if $@;

- $compare = join "\cM\cJ", 'Content-length: 12',
- 'X-bender: kiss my shiny metal ass',
+ my $CL = 'Content-length: 12';
+ my $XB = 'X-bender: kiss my shiny metal ass';
+ my $nl = "\cM\cJ";
+ my $compare = join $nl, "($CL$nl$XB)|($XB$nl$CL)",
          'Content-Type: text/plain; charset=iso8859-1',
          '', 'Hello World!';
- is($stdout, $compare, '... prints output, including custom headers');
+ like($stdout, qr/$re/, '... prints output, including custom headers');
  }

  # get_template_root()

Cheers, Dave

-- 
Dave Howorth
MRC Centre for Protein Engineering
Hills Road, Cambridge, CB2 2QH
01223 252960



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT