You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2012/07/02 21:12:47 UTC

svn commit: r1356418 - /subversion/trunk/subversion/tests/libsvn_subr/io-test.c

Author: rhuijben
Date: Mon Jul  2 19:12:46 2012
New Revision: 1356418

URL: http://svn.apache.org/viewvc?rev=1356418&view=rev
Log:
* subversion/tests/libsvn_subr/io-test.c
  (test_three_file_size_comparison,
   test_three_file_content_comparison): Reduce the test set a bit by not
     iterating every combination 6 times in different orders.

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/io-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/io-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/io-test.c?rev=1356418&r1=1356417&r2=1356418&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/io-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/io-test.c Mon Jul  2 19:12:46 2012
@@ -326,9 +326,9 @@ test_three_file_size_comparison(apr_pool
 
   for (outer = test_file_definitions; outer->name != NULL; outer += 1)
     {    
-      for (middle = test_file_definitions; middle->name != NULL; middle += 1)
+      for (middle = outer; middle->name != NULL; middle += 1)
         {
-          for (inner = test_file_definitions; inner->name != NULL; inner += 1)
+          for (inner = middle; inner->name != NULL; inner += 1)
             {
               svn_pool_clear(iterpool);
 
@@ -396,9 +396,9 @@ test_three_file_content_comparison(apr_p
 
   for (outer = test_file_definitions; outer->name != NULL; outer += 1)
     {    
-      for (middle = test_file_definitions; middle->name != NULL; middle += 1)
+      for (middle = outer; middle->name != NULL; middle += 1)
         {
-          for (inner = test_file_definitions; inner->name != NULL; inner += 1)
+          for (inner = middle; inner->name != NULL; inner += 1)
             {
               svn_pool_clear(iterpool);