File: psections.t

package info (click to toggle)
libapache-mod-perl 1.16-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,580 kB
  • ctags: 1,064
  • sloc: ansic: 4,489; perl: 4,415; sh: 305; makefile: 137
file content (42 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

use Apache::test;

skip_test unless have_module "Data::Dumper";
skip_test unless have_module "Devel::Symdump";

%Apache::ReadConfig:: = ();

$^W=0;

my $i = 0;

print "1..2\n";

require Apache::httpd_conf;

require Apache::PerlSections;

use IO::File ();

my $file = "perlsections.pl";
my $fh = IO::File->new(">$file") or die "can't open $file $!\n";

$fh->print(Apache::PerlSections->dump);

$fh->close;

my $in = IO::File->new($file) or die "can't open $file $!\n";

eval join '', <$in>;

$in->close;

test ++$i, not $@;

die $@ if $@;

test ++$i, -s $file;