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

« back to all changes in this revision

Viewing changes to t/response/TestAPR/brigade.pm

  • 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
package TestAPR::brigade;
 
2
 
 
3
use strict;
 
4
use warnings FATAL => 'all';
 
5
 
 
6
use Apache::Test;
 
7
use Apache::TestUtil;
 
8
 
 
9
use Apache::RequestRec ();
 
10
use APR::Brigade ();
 
11
 
 
12
use Apache::Const -compile => 'OK';
 
13
 
 
14
sub handler {
 
15
 
 
16
    my $r = shift;
 
17
 
 
18
    plan $r, tests => 4;
 
19
 
 
20
    # simple constructor and accessor tests
 
21
 
 
22
    my $bb = APR::Brigade->new($r->pool, $r->connection->bucket_alloc);
 
23
 
 
24
    t_debug('$bb is defined');
 
25
    ok defined $bb;
 
26
 
 
27
    t_debug('$bb ISA APR::Brigade object');
 
28
    ok $bb->isa('APR::Brigade');
 
29
 
 
30
    my $pool = $bb->pool;
 
31
 
 
32
    t_debug('$pool is defined');
 
33
    ok defined $pool;
 
34
 
 
35
    t_debug('$pool ISA APR::Pool object');
 
36
    ok $pool->isa('APR::Pool');
 
37
 
 
38
    Apache::OK;
 
39
}
 
40
 
 
41
1;