(httpd-tests) branch trunk updated: add file function test for mod_include (#21)
[email protected] Tue, 09 Jun 2026 16:05:13 +0000
| Newsgroups | gmane.comp.apache.cvs |
|---|---|
| Message-ID | <178102111392.2345418.16388443827131371043@gitbox3-he-fi.apache.org> |
This is an automated email from the ASF dual-hosted git repository.
covener pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/httpd-tests.git
The following commit(s) were added to refs/heads/trunk by this push:
new a4c6d1d4 add file function test for mod_include (#21)
a4c6d1d4 is described below
commit a4c6d1d46fdfe7a6f5c2d4fd3467a888aaa0b96a
Author: Eric Covener <[email protected]>
AuthorDate: Tue Jun 9 12:05:08 2026 -0400
add file function test for mod_include (#21)
Co-authored-by: Eric Covener <[email protected]>
---
t/htdocs/modules/include/apexpr/restrict_func.shtml | 5 +++++
t/modules/include.t | 2 ++
2 files changed, 7 insertions(+)
diff --git a/t/htdocs/modules/include/apexpr/restrict_func.shtml b/t/htdocs/modules/include/apexpr/restrict_func.shtml
new file mode 100644
index 00000000..31401606
--- /dev/null
+++ b/t/htdocs/modules/include/apexpr/restrict_func.shtml
@@ -0,0 +1,5 @@
+<!--#if expr="file('%{DOCUMENT_ROOT}/foobar.html') =~ /foobar/" -->
+IF_FUNC_TRUE
+<!--#else -->
+IF_FUNC_FALSE
+<!--#endif -->
diff --git a/t/modules/include.t b/t/modules/include.t
index c11f89f5..a4b1e80b 100644
--- a/t/modules/include.t
+++ b/t/modules/include.t
@@ -110,6 +110,8 @@ my %ap_expr_test = (
"directive]",
"apexpr/restrict.shtml" => "[an error occurred while processing this ".
"directive]",
+"apexpr/restrict_func.shtml" => "[an error occurred while processing this ".
+ "directive]",
"apexpr/var.shtml" => "pass pass pass",
"apexpr/lazyvar.shtml" => "pass",
);