subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1633968 - /subversion/trunk/subversion/tests/libsvn_fs/fs-test.c
Date Thu, 23 Oct 2014 22:13:37 GMT
Author: stefan2
Date: Thu Oct 23 22:13:36 2014
New Revision: 1633968

URL: http://svn.apache.org/r1633968
Log:
Cover svn_fs_is_txn_root and svn_fs_is_revision_root in our FS tests.

* subversion/tests/libsvn_fs/fs-test.c
  (basic_commit): Check root types before and after the commit.

Modified:
    subversion/trunk/subversion/tests/libsvn_fs/fs-test.c

Modified: subversion/trunk/subversion/tests/libsvn_fs/fs-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_fs/fs-test.c?rev=1633968&r1=1633967&r2=1633968&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_fs/fs-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_fs/fs-test.c Thu Oct 23 22:13:36 2014
@@ -1157,6 +1157,8 @@ basic_commit(const svn_test_opts_t *opts
 
   /* Create the greek tree. */
   SVN_ERR(svn_test__create_greek_tree(txn_root, pool));
+  SVN_TEST_ASSERT(svn_fs_is_txn_root(txn_root));
+  SVN_TEST_ASSERT(!svn_fs_is_revision_root(txn_root));
 
   /* Commit it. */
   SVN_ERR(svn_fs_commit_txn(&conflict, &after_rev, txn, pool));
@@ -1170,6 +1172,8 @@ basic_commit(const svn_test_opts_t *opts
 
   /* Get root of the revision */
   SVN_ERR(svn_fs_revision_root(&revision_root, fs, after_rev, pool));
+  SVN_TEST_ASSERT(!svn_fs_is_txn_root(revision_root));
+  SVN_TEST_ASSERT(svn_fs_is_revision_root(revision_root));
 
   /* Check the tree. */
   SVN_ERR(svn_test__check_greek_tree(revision_root, pool));



Mime
View raw message