subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1185280 - /subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c
Date Mon, 17 Oct 2011 16:53:52 GMT
Author: rhuijben
Date: Mon Oct 17 16:53:51 2011
New Revision: 1185280

URL: http://svn.apache.org/viewvc?rev=1185280&view=rev
Log:
Resolve test error introduced by r1185242.

* subversion/tests/libsvn_wc/op-depth-test.c
  (open_wc_db): Open the database writable instead of relying on the global
    cache to make the database writable.

Modified:
    subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c

Modified: subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c?rev=1185280&r1=1185279&r2=1185280&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c Mon Oct 17 16:53:51 2011
@@ -77,7 +77,7 @@ open_wc_db(svn_sqlite__db_t **sdb,
            apr_pool_t *scratch_pool)
 {
   SVN_ERR(svn_wc__db_util_open_db(sdb, wc_root_abspath, "wc.db",
-                                  svn_sqlite__mode_readonly, my_statements,
+                                  svn_sqlite__mode_readwrite, my_statements,
                                   result_pool, scratch_pool));
   return SVN_NO_ERROR;
 }
@@ -481,6 +481,7 @@ check_db_rows(svn_test__sandbox_t *b,
   /* Compare EXPECTED_HASH with ACTUAL_HASH and return any errors. */
   SVN_ERR(svn_hash_diff(expected_hash, found_hash,
                         compare_nodes_rows, &comparison_baton, b->pool));
+  SVN_ERR(svn_sqlite__close(sdb));
   return comparison_baton.errors;
 }
 
@@ -1183,6 +1184,7 @@ insert_dirs(svn_test__sandbox_t *b,
     NULL,
   };
 
+  SVN_DBG(("HERE!\n"));
   SVN_ERR(open_wc_db(&sdb, b->wc_abspath, statements, b->pool, b->pool));
 
   SVN_ERR(svn_sqlite__get_statement(&stmt, sdb, 0));



Mime
View raw message