You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2013/02/08 21:15:52 UTC
svn commit: r1444214 - in /httpd/test/framework/trunk/t/apache:
http_strict.t server_name_port.t
Author: sf
Date: Fri Feb 8 20:15:51 2013
New Revision: 1444214
URL: http://svn.apache.org/r1444214
Log:
Instead of not running tests for unfixed bugs, tell the test framework to
mark them as todo.
Modified:
httpd/test/framework/trunk/t/apache/http_strict.t
httpd/test/framework/trunk/t/apache/server_name_port.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=1444214&r1=1444213&r2=1444214&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/http_strict.t (original)
+++ httpd/test/framework/trunk/t/apache/http_strict.t Fri Feb 8 20:15:51 2013
@@ -37,8 +37,8 @@ my @test_cases = (
[ "GET / HTTP/1.0\r\nFoo bar\r\n\r\n" => 400],
[ "GET / HTTP/1.0\r\n: bar\r\n\r\n" => 400],
[ "GET / HTTP/1.0\r\nFoo:bar\r\n\r\n" => 200],
- # XXX TODO [ "GET / HTTP/1.0\r\nFoo :bar\r\n\r\n" => 400],
- # XXX TODO [ "GET / HTTP/1.0\r\n Foo:bar\r\n\r\n" => 400],
+ [ "GET / HTTP/1.0\r\nFoo :bar\r\n\r\n" => 400],
+ [ "GET / HTTP/1.0\r\n Foo:bar\r\n\r\n" => 400],
[ "GET / HTTP/1.0\r\nF\x01o: bar\r\n\r\n" => 400],
[ "GET / HTTP/1.0\r\nF\ro: bar\r\n\r\n" => 400],
[ "GET / HTTP/1.0\r\nF\to: bar\r\n\r\n" => 400],
@@ -113,7 +113,9 @@ my @test_cases = (
[ "R" . "Location: ../foo/" => 500 ],
);
-plan tests => scalar(@test_cases), need_min_apache_version('2.5');
+plan tests => scalar(@test_cases),
+ todo => [25, 26],
+ need_min_apache_version('2.5');
foreach my $t (@test_cases) {
my $req = $t->[0];
Modified: httpd/test/framework/trunk/t/apache/server_name_port.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/server_name_port.t?rev=1444214&r1=1444213&r2=1444214&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/server_name_port.t (original)
+++ httpd/test/framework/trunk/t/apache/server_name_port.t Fri Feb 8 20:15:51 2013
@@ -47,7 +47,13 @@ my @test_cases = (
[ "http://[::1]:123/", "[::2]:321" => 200, '[::1]', '123' ],
);
-plan tests => 3 * scalar(@test_cases), need_min_apache_version('2.5');
+my @todo;
+if (!have_min_apache_version('2.5')) {
+ # r1426827
+ @todo = (32, 35, 56, 57, 59, 60, 80, 81, 83, 84);
+}
+
+plan tests => 3 * scalar(@test_cases), todo => \@todo;
foreach my $t (@test_cases) {
my $req = "GET $t->[0]$url_suffix HTTP/1.1\r\nConnection: close\r\n";