subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1667237 - in /subversion/trunk/subversion/tests: svn_test.h svn_test_main.c
Date Tue, 17 Mar 2015 10:22:40 GMT
Author: stsp
Date: Tue Mar 17 10:22:40 2015
New Revision: 1667237

URL: http://svn.apache.org/r1667237
Log:
Revert r1667199, which a disable-sleep-for-timestamps API for C tests.
These API was added for a new test committed in r1667228.
As of r1667234 the test does not need to disable sleep for timestamps anymore.
It uses a better workaround: Ensure the file's size changes, too.

Modified:
    subversion/trunk/subversion/tests/svn_test.h
    subversion/trunk/subversion/tests/svn_test_main.c

Modified: subversion/trunk/subversion/tests/svn_test.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/svn_test.h?rev=1667237&r1=1667236&r2=1667237&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/svn_test.h (original)
+++ subversion/trunk/subversion/tests/svn_test.h Tue Mar 17 10:22:40 2015
@@ -355,11 +355,6 @@ svn_test__fs_type_not(const svn_test_opt
                       const char *predicate_value,
                       apr_pool_t *pool);
 
-void
-svn_test__enable_sleep_for_timestamps(apr_pool_t *pool);
-
-void
-svn_test__disable_sleep_for_timestamps(apr_pool_t *pool);
 
 #ifdef __cplusplus
 }

Modified: subversion/trunk/subversion/tests/svn_test_main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/svn_test_main.c?rev=1667237&r1=1667236&r2=1667237&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/svn_test_main.c (original)
+++ subversion/trunk/subversion/tests/svn_test_main.c Tue Mar 17 10:22:40 2015
@@ -973,7 +973,9 @@ svn_test_main(int argc, const char *argv
   opts.verbose = verbose_mode;
 
   /* Disable sleeping for timestamps, to speed up the tests. */
-  svn_test__disable_sleep_for_timestamps(pool);
+  apr_env_set(
+         "SVN_I_LOVE_CORRUPTED_WORKING_COPIES_SO_DISABLE_SLEEP_FOR_TIMESTAMPS",
+         "yes", pool);
 
   /* You can't be both quiet and verbose. */
   if (quiet_mode && verbose_mode)
@@ -1090,19 +1092,3 @@ svn_test__fs_type_not(const svn_test_opt
 {
   return (0 != strcmp(predicate_value, opts->fs_type));
 }
-
-void
-svn_test__enable_sleep_for_timestamps(apr_pool_t *pool)
-{
-  apr_env_set(
-         "SVN_I_LOVE_CORRUPTED_WORKING_COPIES_SO_DISABLE_SLEEP_FOR_TIMESTAMPS",
-         "no", pool);
-}
-
-void
-svn_test__disable_sleep_for_timestamps(apr_pool_t *pool)
-{
-  apr_env_set(
-         "SVN_I_LOVE_CORRUPTED_WORKING_COPIES_SO_DISABLE_SLEEP_FOR_TIMESTAMPS",
-         "yes", pool);
-}



Mime
View raw message