Author: pgollucci Date: Tue Jul 19 22:20:22 2005 New Revision: 219840 URL: http://svn.apache.org/viewcvs?rev=219840&view=rev Log: Stop skipping this test 2.1.x now matches 2.0.x in its handling of C-L
Modified: perl/modperl/trunk/t/apache/content_length_header.t Modified: perl/modperl/trunk/t/apache/content_length_header.t URL: http://svn.apache.org/viewcvs/perl/modperl/trunk/t/apache/content_length_header.t?rev=219840&r1=219839&r2=219840&view=diff ============================================================================== --- perl/modperl/trunk/t/apache/content_length_header.t (original) +++ perl/modperl/trunk/t/apache/content_length_header.t Tue Jul 19 22:20:22 2005 @@ -5,11 +5,7 @@ use Apache::TestUtil; use Apache::TestRequest; -my $skip = have_min_apache_version(2.1) ? - skip_reason('investigating 2.1 C-L behaviors') : - 1; - -plan tests => 12 * 2 + 3, $skip; +plan tests => 12 * 2 + 3; my $location = "/TestApache__content_length_header"; @@ -47,9 +43,9 @@ my $uri = $location; my $res = $method->($uri); - my $cl = have_min_apache_version(2.1) ? undef : 0; - my $head_cl = have_min_apache_version(2.1) ? $cl : undef; - + my $cl = 0; + my $head_cl = undef; + ok t_cmp $res->code, 200, "$method $uri code"; ok t_cmp ($res->header('Content-Length'), $method eq 'GET' ? $cl : $head_cl, @@ -68,8 +64,8 @@ my $uri = "$location?set_content_length"; my $res = $method->($uri); - my $cl = have_min_apache_version(2.1) ? 25 : 0; - my $head_cl = have_min_apache_version(2.1) ? $cl : undef; + my $cl = 0; + my $head_cl = undef; ok t_cmp $res->code, 200, "$method $uri code"; ok t_cmp ($res->header('Content-Length'),