You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2010/06/06 00:47:43 UTC

svn commit: r951787 - /httpd/test/framework/trunk/t/apache/acceptpathinfo.t

Author: jorton
Date: Sat Jun  5 22:47:42 2010
New Revision: 951787

URL: http://svn.apache.org/viewvc?rev=951787&view=rev
Log:
- simplify; avoid running the requests twice

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

Modified: httpd/test/framework/trunk/t/apache/acceptpathinfo.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/acceptpathinfo.t?rev=951787&r1=951786&r2=951787&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/acceptpathinfo.t (original)
+++ httpd/test/framework/trunk/t/apache/acceptpathinfo.t Sat Jun  5 22:47:42 2010
@@ -56,13 +56,14 @@ foreach my $mode (keys %tests) {
 
             my $req = $loc.$tests{$mode}[0].$file.$pinf;
 
-            my $actual = GET_RC "$req";
-            ok t_cmp($actual,
+            my $resp = GET $req;
+            
+            ok t_cmp($resp->code,
                      $expectedrc,
                      "AcceptPathInfo $mode return code for $req"
                     );
 
-            $actual = super_chomp(GET_BODY "$req");
+            my $actual = super_chomp($resp->content);
             ok t_cmp($actual,
                      qr/$expectedbody/,
                      "AcceptPathInfo $mode body for $req"