You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-commits@perl.apache.org by ja...@apache.org on 2020/01/06 20:14:17 UTC

svn commit: r1872393 - /perl/Apache-Test/trunk/lib/Apache/TestCommon.pm

Author: jailletc36
Date: Mon Jan  6 20:14:17 2020
New Revision: 1872393

URL: http://svn.apache.org/viewvc?rev=1872393&view=rev
Log:
Reverse the order of parameter in t_cmp.
It should be "received" first, then "expected", according to Apache::TestUtil man page.

This makes current Travis verbose test failure output more understandable.

Modified:
    perl/Apache-Test/trunk/lib/Apache/TestCommon.pm

Modified: perl/Apache-Test/trunk/lib/Apache/TestCommon.pm
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/lib/Apache/TestCommon.pm?rev=1872393&r1=1872392&r2=1872393&view=diff
==============================================================================
--- perl/Apache-Test/trunk/lib/Apache/TestCommon.pm (original)
+++ perl/Apache-Test/trunk/lib/Apache/TestCommon.pm Mon Jan  6 20:14:17 2020
@@ -53,7 +53,7 @@ sub run_write_test {
                                 $received += length $chunk;
                             });
 
-            ok t_cmp($length, $received, 'bytes in body');
+            ok t_cmp($received, $length, 'bytes in body');
         }
     }
 }