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

svn commit: r1777515 - /httpd/test/framework/trunk/t/apache/http_strict.t

Author: covener
Date: Thu Jan  5 21:57:21 2017
New Revision: 1777515

URL: http://svn.apache.org/viewvc?rev=1777515&view=rev
Log:
test the folding path using the c-module.

currently only runs on trunk, not backported.


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

Modified: httpd/test/framework/trunk/t/apache/http_strict.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/http_strict.t?rev=1777515&r1=1777514&r2=1777515&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/http_strict.t (original)
+++ httpd/test/framework/trunk/t/apache/http_strict.t Thu Jan  5 21:57:21 2017
@@ -111,7 +111,9 @@ my @test_cases = (
     [ "GET /regression-header HTTP/1.1\r\nHost: localhost\r\n\r\n" => 500, have_module qw(mod_headers) ],
 );
 
-plan tests => scalar(@test_cases),
+my $test_fold = need_min_apache_fix("2.2.33", "2.4.26", "2.5.0");
+
+plan tests => scalar(@test_cases) + $test_fold,
 #    todo => [25, 26],
      need_min_apache_version('2.2.32');
 
@@ -192,6 +194,18 @@ foreach my $t (@test_cases) {
     }
 }
 
+
+if ($test_fold) { 
+    my $resp;
+    my $foo;
+    $resp = GET("/fold");
+    $foo = $resp->header("Foo");
+    ok ($resp->code == 200);
+    if(defined($foo)) { 
+        ok ($foo =~ /Bar Baz/);
+    }
+}
+
 sub escape
 {
     my $in = shift;