You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2020/05/21 12:05:48 UTC

svn commit: r1878000 - /httpd/test/framework/trunk/t/modules/setenvif.t

Author: jorton
Date: Thu May 21 12:05:48 2020
New Revision: 1878000

URL: http://svn.apache.org/viewvc?rev=1878000&view=rev
Log:
Skip mod_setenvif bug test for versions without the fix.

Modified:
    httpd/test/framework/trunk/t/modules/setenvif.t

Modified: httpd/test/framework/trunk/t/modules/setenvif.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/setenvif.t?rev=1878000&r1=1877999&r2=1878000&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/setenvif.t (original)
+++ httpd/test/framework/trunk/t/modules/setenvif.t Thu May 21 12:05:48 2020
@@ -167,10 +167,16 @@ write_htaccess("SetEnvIfExpr \"%{REQUEST
 $body = GET_BODY $page;
 ok t_cmp($body, "1:(none)\n2:(none)\n3:(none)\n");
 
-## test SetEnvIfExpr with replacement when regex is REQUIRED to NOT match ##
-write_htaccess("SetEnvIfExpr \"%{REQUEST_URI} !~ /\.\(sh\)tmlXXX\$/\" VAR_ONE=\$0 VAR_TWO=\$1");
-$body = GET_BODY $page;
-ok t_cmp($body, "1:\$0\n2:\$1\n3:(none)\n");
+if (need_min_apache_version("2.4.38")) {
+    ## test SetEnvIfExpr with replacement when regex is REQUIRED to NOT match ##
+    write_htaccess("SetEnvIfExpr \"%{REQUEST_URI} !~ /\.\(sh\)tmlXXX\$/\" VAR_ONE=\$0 VAR_TWO=\$1");
+    $body = GET_BODY $page;
+    ok t_cmp($body, "1:\$0\n2:\$1\n3:(none)\n");
+}
+else {
+    # Skip for versions without r1786235 backported
+    skip "skipping inverted match test with version <2.4.38"
+}
 
 ## i think this should work, but it doesnt.
 ## leaving it commented now pending investigation.