httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1777515 - /httpd/test/framework/trunk/t/apache/http_strict.t
Date Thu, 05 Jan 2017 21:57:21 GMT
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;



Mime
View raw message