You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2014/01/16 00:53:58 UTC
svn commit: r1558616 -
/subversion/trunk/subversion/tests/libsvn_wc/entries-compat.c
Author: rhuijben
Date: Wed Jan 15 23:53:57 2014
New Revision: 1558616
URL: http://svn.apache.org/r1558616
Log:
Move some test creation to its single user.
* subversion/tests/libsvn_wc/entries-compat.c
(create_fake_wc): Move M subdir creation...
(test_stubs): ... to this test, as no other test uses it.
Modified:
subversion/trunk/subversion/tests/libsvn_wc/entries-compat.c
Modified: subversion/trunk/subversion/tests/libsvn_wc/entries-compat.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_wc/entries-compat.c?rev=1558616&r1=1558615&r2=1558616&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_wc/entries-compat.c (original)
+++ subversion/trunk/subversion/tests/libsvn_wc/entries-compat.c Wed Jan 15 23:53:57 2014
@@ -312,9 +312,6 @@ create_fake_wc(const char *subdir, apr_p
SVN_ERR(svn_dirent_get_absolute(&wc_abspath, root, pool));
SVN_ERR(svn_test__create_fake_wc(wc_abspath, TESTING_DATA, pool));
- wc_abspath = svn_dirent_join(wc_abspath, "M", pool);
- SVN_ERR(svn_test__create_fake_wc(wc_abspath, M_TESTING_DATA, pool));
-
return SVN_NO_ERROR;
}
@@ -400,6 +397,7 @@ test_stubs(apr_pool_t *pool)
const svn_wc_entry_t *stub_entry;
const svn_wc_entry_t *entry;
const svn_wc_entry_t *test_entry;
+ const char *M_dir;
apr_hash_t *entries;
#undef WC_NAME
@@ -407,6 +405,9 @@ test_stubs(apr_pool_t *pool)
SVN_ERR(create_open(&db, &local_abspath, WC_NAME, pool));
+ M_dir = svn_dirent_join(local_abspath, "M", pool);
+ SVN_ERR(svn_test__create_fake_wc(M_dir, M_TESTING_DATA, pool));
+
/* The "M" entry is a subdir. Let's ensure we can reach its stub,
and the actual contents. */
local_relpath = svn_dirent_join_many(pool,