~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy-updates

« back to all changes in this revision

Viewing changes to t/apache/send_cgi_header.t

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2004-08-19 06:23:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040819062348-jxl4koqbtvgm8v2t
Tags: 1.99.14-4
Remove the LFS CFLAGS, and build-dep against apache2-*-dev (>= 2.0.50-10)
as we're backing out of the apache2/apr ABI transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
use Apache::TestUtil;
6
6
use Apache::TestRequest;
7
7
 
8
 
plan tests => 3;
 
8
plan tests => 4;
9
9
 
10
10
my $location = "/TestApache__send_cgi_header";
11
11
my $res = GET $location;
18
18
         $res->header('Set-Cookie'),
19
19
         "header test2");
20
20
 
21
 
ok t_cmp("This not the end of the world\n",
22
 
         $res->content,
23
 
         "body test");
 
21
my $expected = "\0\0This not the end of the world\0\0\n";
 
22
my $received = $res->content;
 
23
 
 
24
ok t_cmp(length($expected),
 
25
         length($received),
 
26
         "body length test");
 
27
 
 
28
# \000 aren't seen when printed
 
29
ok t_cmp($expected,
 
30
         $received,
 
31
         "body content test");