subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1665532 - /subversion/trunk/subversion/tests/libsvn_ra/ra-test.c
Date Tue, 10 Mar 2015 13:23:47 GMT
Author: rhuijben
Date: Tue Mar 10 13:23:47 2015
New Revision: 1665532

URL: http://svn.apache.org/r1665532
Log:
* subversion/tests/libsvn_ra/ra-test.c
  (commit_changes,
   commit_tree,
   delete_revision_above_youngest,
   ra_revision_errors): Properly close all directories that were opened.

Modified:
    subversion/trunk/subversion/tests/libsvn_ra/ra-test.c

Modified: subversion/trunk/subversion/tests/libsvn_ra/ra-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_ra/ra-test.c?rev=1665532&r1=1665531&r2=1665532&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_ra/ra-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_ra/ra-test.c Tue Mar 10 13:23:47 2015
@@ -88,6 +88,8 @@ commit_changes(svn_ra_session_t *session
   /* copy root-dir@0 to A@1 */
   SVN_ERR(editor->add_directory("A", root_baton, repos_root_url, 0,
                                pool, &dir_baton));
+  SVN_ERR(editor->close_directory(dir_baton, pool));
+  SVN_ERR(editor->close_directory(root_baton, pool));
   SVN_ERR(editor->close_edit(edit_baton, pool));
   return SVN_NO_ERROR;
 }
@@ -130,6 +132,7 @@ commit_tree(svn_ra_session_t *session,
   SVN_ERR(editor->close_file(file_baton, NULL, pool));
   SVN_ERR(editor->close_directory(B_baton, pool));
   SVN_ERR(editor->close_directory(A_baton, pool));
+  SVN_ERR(editor->close_directory(root_baton, pool));
   SVN_ERR(editor->close_edit(edit_baton, pool));
   return SVN_NO_ERROR;
 }
@@ -731,6 +734,7 @@ delete_revision_above_youngest(const svn
     SVN_ERR(editor->add_directory("A", root_baton, NULL, SVN_INVALID_REVNUM,
                                   pool, &dir_baton));
     SVN_ERR(editor->close_directory(dir_baton, pool));
+    SVN_ERR(editor->close_directory(root_baton, pool));
     SVN_ERR(editor->close_edit(edit_baton, pool));
   }
 
@@ -881,6 +885,7 @@ ra_revision_errors(const svn_test_opts_t
     SVN_ERR(editor->add_directory("D", root_baton, NULL, SVN_INVALID_REVNUM,
                                   pool, &dir_baton));
     SVN_ERR(editor->close_directory(dir_baton, pool));
+    SVN_ERR(editor->close_directory(root_baton, pool));
     SVN_ERR(editor->close_edit(edit_baton, pool));
   }
 



Mime
View raw message