subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1356418 - /subversion/trunk/subversion/tests/libsvn_subr/io-test.c
Date Mon, 02 Jul 2012 19:12:47 GMT
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);
 



Mime
View raw message