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

« back to all changes in this revision

Viewing changes to t/filter/in_str_bin_data.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:
 
1
use strict;
 
2
use warnings FATAL => 'all';
 
3
 
 
4
use Apache::Test;
 
5
use Apache::TestRequest;
 
6
use Apache::TestUtil;
 
7
 
 
8
plan tests => 4;
 
9
 
 
10
my $base = "/TestFilter__in_str_bin_data";
 
11
my @locations = map {$base . $_ } ('', '_filter');
 
12
my $expected = "123\001456\000789";
 
13
 
 
14
# test the binary data read/print w/ and w/o pass through filter
 
15
for my $location (@locations) {
 
16
    my $received = POST_BODY_ASSERT $location, content => $expected;
 
17
 
 
18
    ok t_cmp(length($expected),
 
19
             length($received),
 
20
             "$location binary response length");
 
21
 
 
22
    ok t_cmp($expected,
 
23
             $received,
 
24
             "$location binary response data");
 
25
}
 
26