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

« back to all changes in this revision

Viewing changes to ModPerl-Registry/t/bin_resp.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
# testing various binary responses
 
5
 
 
6
use Apache::Test;
 
7
use Apache::TestUtil;
 
8
use Apache::TestRequest;
 
9
 
 
10
plan tests => 2;
 
11
 
 
12
# 2 sub-tests
 
13
{
 
14
    # favicon.ico and other .ico image/x-icon images start with
 
15
    # sequence:
 
16
    my $expected = "\000\000\001\000";
 
17
    my $location = "/registry/bin_resp_start_0.pl";
 
18
    #my $location = "/cgi-bin/bin_resp_start_0.pl";
 
19
 
 
20
    my $received = GET_BODY_ASSERT $location;
 
21
 
 
22
    #t_debug "$received";
 
23
 
 
24
    ok t_cmp(length($expected), length($received), "image size");
 
25
 
 
26
    t_debug "comparing the binary contents";
 
27
    ok $expected eq $received;
 
28
}
 
29
 
 
30