diff options
Diffstat (limited to 't/01include03.t')
-rw-r--r-- | t/01include03.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/01include03.t b/t/01include03.t new file mode 100644 index 0000000..1f9df6a --- /dev/null +++ b/t/01include03.t @@ -0,0 +1,23 @@ +# -*- perl -*- +use lib qw(t lib); +use strict; +use Test; +plan test => 2; + +use TestPreproc; +# Test recursive inclusion handling +ok(!new TestPreproc '-expect_fail', -expand => [qw(include)]); +ok($Apache::Admin::Config::ERROR, qr/level1.conf already included/); +__DATA__ +!>httpd.conf +ServerType standalone +ServerRoot "$server_root" +Include level1.conf +!>level1.conf +Include level2.conf +!>level2.conf +Include level3.conf +!>level3.conf +Include level1.conf +!$ + |