You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2010/11/07 22:09:41 UTC

svn commit: r1032395 - /httpd/test/framework/trunk/t/apache/expr.t

Author: sf
Date: Sun Nov  7 21:09:40 2010
New Revision: 1032395

URL: http://svn.apache.org/viewvc?rev=1032395&view=rev
Log:
Add test for file function

Modified:
    httpd/test/framework/trunk/t/apache/expr.t

Modified: httpd/test/framework/trunk/t/apache/expr.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/expr.t?rev=1032395&r1=1032394&r2=1032395&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/expr.t (original)
+++ httpd/test/framework/trunk/t/apache/expr.t Sun Nov  7 21:09:40 2010
@@ -89,6 +89,8 @@ my @test_cases = (
     [ q[unescape('%3f')   = '?' ]      => 1 ],
     [ q[toupper(escape('?')) = '%3F' ] => 1 ],
     [ q[tolower(toupper(escape('?'))) = '%3f' ] => 1 ],
+    [ q[file('] . Apache::Test::vars('serverroot')
+      . q[/htdocs/expr/index.html') = 'foo\n' ]  => 1 ],
     # error handling
     [ q['%{foo:User-Agent}' != 'bar'] => undef ],
     [ q[%{foo:User-Agent} != 'bar']   => undef ],