summaryrefslogtreecommitdiff
path: root/t/05ifdefine02.t
blob: 030ca7be5087c28f858a67a3056855446f8e4c57 (plain)
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
# -*- perl -*-
use lib qw(t lib);
use strict;
use Test;
plan test => 1;

use TestPreproc;

my $obj = new TestPreproc -expand => ['ifdefine'];
ok($obj->dump_raw, $obj->dump_expect);

__DATA__
!>httpd.conf
<VirtualHost bar>
   ServerName localhost
   ServerAdmin root
   Define FOO
</VirtualHost>  
<IfDefine FOO>
   Alias /foo /bar
</IfDefine>
!=
<VirtualHost bar>
   ServerName localhost
   ServerAdmin root
</VirtualHost>  
   Alias /foo /bar
!$

Return to:

Send suggestions and report system problems to the System administrator.