subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1576377 - /subversion/trunk/subversion/tests/svn_test_fs.c
Date Tue, 11 Mar 2014 15:26:55 GMT
Author: rhuijben
Date: Tue Mar 11 15:26:55 2014
New Revision: 1576377

URL: http://svn.apache.org/r1576377
Log:
Make the C tests use BDB databases with the same configuration options that
'svnadmin create' does, to avoid using much more disk space than needed by
keeping the BDB transaction log.

This reduces the ramdrive size required to run the BDB C tests considerable.

* subversion/tests/svn_test_fs.c
  (svn_test__create_repos): Apply the same defaults as 'svnadmin create'

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

Modified: subversion/trunk/subversion/tests/svn_test_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/svn_test_fs.c?rev=1576377&r1=1576376&r2=1576377&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/svn_test_fs.c (original)
+++ subversion/trunk/subversion/tests/svn_test_fs.c Tue Mar 11 15:26:55 2014
@@ -223,6 +223,11 @@ svn_test__create_repos(svn_repos_t **rep
   apr_hash_t *fs_config = make_fs_config(opts->fs_type,
                                          opts->server_minor_version, pool);
 
+  /* Apply the same defaults svnadmin would set when not passing
+     additional arguments. */
+  svn_hash_sets(fs_config, SVN_FS_CONFIG_BDB_TXN_NOSYNC, "0");
+  svn_hash_sets(fs_config, SVN_FS_CONFIG_BDB_LOG_AUTOREMOVE, "1");
+
   /* If there's already a repository named NAME, delete it.  Doing
      things this way means that repositories stick around after a
      failure for postmortem analysis, but also that tests can be



Mime
View raw message