Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 667A7200BF3 for ; Thu, 5 Jan 2017 22:57:24 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 65295160B33; Thu, 5 Jan 2017 21:57:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D3D32160B26 for ; Thu, 5 Jan 2017 22:57:23 +0100 (CET) Received: (qmail 92504 invoked by uid 500); 5 Jan 2017 21:57:23 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 92495 invoked by uid 99); 5 Jan 2017 21:57:22 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2017 21:57:22 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 53EAD3A0252 for ; Thu, 5 Jan 2017 21:57:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1777515 - /httpd/test/framework/trunk/t/apache/http_strict.t Date: Thu, 05 Jan 2017 21:57:21 -0000 To: cvs@httpd.apache.org From: covener@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170105215722.53EAD3A0252@svn01-us-west.apache.org> archived-at: Thu, 05 Jan 2017 21:57:24 -0000 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;