summaryrefslogtreecommitdiff
path: root/lib/Apache/Config/Preproc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-12-07 14:11:49 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-12-07 14:16:39 +0200
commita8469ca12c614dc3baa1e0238328a6243189ebbe (patch)
tree7df738df64016fbfdd1cef0883e1d74c8128119b /lib/Apache/Config/Preproc
parentef681e30b137c2a43aab1bd48201da7e7646b692 (diff)
downloadacpp-a8469ca12c614dc3baa1e0238328a6243189ebbe.tar.gz
acpp-a8469ca12c614dc3baa1e0238328a6243189ebbe.tar.bz2
Fix include expansion and testsuite coverage.
* lib/Apache/Config/Preproc/include.pm (expand): Bugfix. Return cloned items. * t/TestPreproc.pm: Make it possible to store data for multiple tests in the __DATA__ section. * t/00compact.t: New file. * t/01include00.t: New file. * t/pattern.t: Rename to t/01include01.t * t/01include02.t: New file * t/recursive.t: Rename to t/01include03.t * t/patopt01.t: Rename to t/02incopt00.t * t/patopt02.t: Rename to t/02incopt01.t * t/03ifmodule00.t: New file. * t/03ifmodule01.t: New file. * t/macro01.t: Rename to t/04macro00.t * t/macro02.tL Rename to t/04macro01.t * t/99all00.t: New file. * t/inc.t: Delete. * t/nested.t: Delete.
Diffstat (limited to 'lib/Apache/Config/Preproc')
-rw-r--r--lib/Apache/Config/Preproc/include.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Apache/Config/Preproc/include.pm b/lib/Apache/Config/Preproc/include.pm
index 800e77a..dfa841c 100644
--- a/lib/Apache/Config/Preproc/include.pm
+++ b/lib/Apache/Config/Preproc/include.pm
@@ -31,7 +31,8 @@ sub expand {
}
if (my $inc = new Apache::Admin::Config($file,
@{$tree->options})) {
- push @$repl, $inc->select;
+ # NOTE: make sure each item is cloned
+ push @$repl, map { $_->clone } $inc->select;
} else {
croak $Apache::Admin::Config::ERROR;
}

Return to:

Send suggestions and report system problems to the System administrator.