httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r951787 - /httpd/test/framework/trunk/t/apache/acceptpathinfo.t
Date Sat, 05 Jun 2010 22:47:43 GMT
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"



Mime
View raw message