You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2011/04/28 17:08:56 UTC

svn commit: r1097498 - /subversion/trunk/subversion/tests/svn_test_main.c

Author: philip
Date: Thu Apr 28 15:08:55 2011
New Revision: 1097498

URL: http://svn.apache.org/viewvc?rev=1097498&view=rev
Log:
Try to fix the Windows build.

* subversion/tests/svn_test_main.c
  (): Include apr_env.h
  (main): Use apr_set_env.

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

Modified: subversion/trunk/subversion/tests/svn_test_main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/svn_test_main.c?rev=1097498&r1=1097497&r2=1097498&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/svn_test_main.c (original)
+++ subversion/trunk/subversion/tests/svn_test_main.c Thu Apr 28 15:08:55 2011
@@ -31,6 +31,7 @@
 #include <apr_pools.h>
 #include <apr_general.h>
 #include <apr_signal.h>
+#include <apr_env.h>
 
 #include "svn_cmdline.h"
 #include "svn_opt.h"
@@ -479,8 +480,9 @@ main(int argc, const char *argv[])
     }
 
   /* Disable sleeping for timestamps, to speed up the tests. */
-  setenv("SVN_I_LOVE_CORRUPTED_WORKING_COPIES_SO_DISABLE_SLEEP_FOR_TIMESTAMPS",
-         "yes", TRUE /* overwrite */);
+  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)