summaryrefslogtreecommitdiff
path: root/t/01include03.t
diff options
context:
space:
mode:
Diffstat (limited to 't/01include03.t')
-rw-r--r--t/01include03.t23
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
+!$
+

Return to:

Send suggestions and report system problems to the System administrator.