subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1356442 - /subversion/trunk/subversion/tests/libsvn_subr/io-test.c
Date Mon, 02 Jul 2012 19:54:15 GMT
Author: philip
Date: Mon Jul  2 19:54:14 2012
New Revision: 1356442

URL: http://svn.apache.org/viewvc?rev=1356442&view=rev
Log:
* subversion/tests/libsvn_subr/io-test.c
  (test_two_file_size_comparison,
   test_two_file_content_comparison,
   test_three_file_size_comparison,
   test_three_file_content_comparison): Allow io-test to be built
    to test all permutations or a subset.

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=1356442&r1=1356441&r2=1356442&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:54:14 2012
@@ -232,7 +232,12 @@ test_two_file_size_comparison(apr_pool_t
 
   for (outer = test_file_definitions; outer->name != NULL; outer += 1)
     {
-      for (inner = test_file_definitions; inner->name != NULL; inner += 1)
+#ifdef SVN_IO_TEST_ALL_PERMUTATIONS
+      inner = test_file_definitions;
+#else
+      inner = outer;
+#endif
+      for (; inner->name != NULL; inner += 1)
         {
           svn_pool_clear(iterpool);
 
@@ -278,7 +283,12 @@ test_two_file_content_comparison(apr_poo
 
   for (outer = test_file_definitions; outer->name != NULL; outer += 1)
     {
-      for (inner = test_file_definitions; inner->name != NULL; inner += 1)
+#ifdef SVN_IO_TEST_ALL_PERMUTATIONS
+      inner = test_file_definitions;
+#else
+      inner = outer;
+#endif
+      for (; inner->name != NULL; inner += 1)
         {
           svn_pool_clear(iterpool);
 
@@ -326,9 +336,19 @@ test_three_file_size_comparison(apr_pool
 
   for (outer = test_file_definitions; outer->name != NULL; outer += 1)
     {
-      for (middle = outer; middle->name != NULL; middle += 1)
+#ifdef SVN_IO_TEST_ALL_PERMUTATIONS
+      middle = test_file_definitions;
+#else
+      middle = outer;
+#endif
+      for (; middle->name != NULL; middle += 1)
         {
-          for (inner = middle; inner->name != NULL; inner += 1)
+#ifdef SVN_IO_TEST_ALL_PERMUTATIONS
+          inner = test_file_definitions;
+#else
+          inner = middle;
+#endif
+          for (; inner->name != NULL; inner += 1)
             {
               svn_pool_clear(iterpool);
 
@@ -396,9 +416,19 @@ test_three_file_content_comparison(apr_p
 
   for (outer = test_file_definitions; outer->name != NULL; outer += 1)
     {
-      for (middle = outer; middle->name != NULL; middle += 1)
+#ifdef SVN_IO_TEST_ALL_PERMUTATIONS
+      middle = test_file_definitions;
+#else
+      middle = outer;
+#endif
+      for (; middle->name != NULL; middle += 1)
         {
-          for (inner = middle; inner->name != NULL; inner += 1)
+#ifdef SVN_IO_TEST_ALL_PERMUTATIONS
+          inner = test_file_definitions;
+#else
+          inner = middle;
+#endif
+          for (; inner->name != NULL; inner += 1)
             {
               svn_pool_clear(iterpool);
 



Mime
View raw message