httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1684518 - /httpd/test/framework/trunk/t/apache/contentlength.t
Date Tue, 09 Jun 2015 20:25:13 GMT
Author: wrowe
Date: Tue Jun  9 20:25:13 2015
New Revision: 1684518

URL: http://svn.apache.org/r1684518
Log:
Adjust chunk link errors for chunk error handling changes [ylavic]

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

Modified: httpd/test/framework/trunk/t/apache/contentlength.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/contentlength.t?rev=1684518&r1=1684517&r2=1684518&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/contentlength.t (original)
+++ httpd/test/framework/trunk/t/apache/contentlength.t Tue Jun  9 20:25:13 2015
@@ -10,21 +10,33 @@ my @test_strings = ("",
                     "0000000000000000000000000000000000",
                     "1000000000000000000000000000000000",
                     "-1",
+                    "123abc",
                     );
 my @req_strings =  ("/echo_post",
                     "/i_do_not_exist_in_your_wildest_imagination");
 
+my $resp_failure;
+if (have_min_apache_version('2.2.30')
+    && (!have_min_apache_version('2.3.0')
+        || have_min_apache_version('2.4.14'))) {
+    $resp_failure = "HTTP/1.1 400 Bad Request";
+}
+else {
+    $resp_failure = "HTTP/1.1 413 Request Entity Too Large";
+}
 # This is expanded out.
-my @resp_strings = ("HTTP/1.1 413 Request Entity Too Large",
-                    "HTTP/1.1 413 Request Entity Too Large",
+my @resp_strings = ($resp_failure,
+                    $resp_failure,
                     "HTTP/1.1 200 OK",
                     "HTTP/1.1 404 Not Found",
                     "HTTP/1.1 200 OK",
                     "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 413 Request Entity Too Large",
-                    "HTTP/1.1 413 Request Entity Too Large",
-                    "HTTP/1.1 413 Request Entity Too Large",
-                    "HTTP/1.1 413 Request Entity Too Large",
+                    $resp_failure,
+                    $resp_failure,
+                    $resp_failure,
+                    $resp_failure,
+                    $resp_failure,
+                    $resp_failure,
                    );
 
 my $tests = 4 * @test_strings;



Mime
View raw message