You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2012/04/17 11:42:43 UTC
svn commit: r1327015 -
/subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
Author: philip
Date: Tue Apr 17 09:42:42 2012
New Revision: 1327015
URL: http://svn.apache.org/viewvc?rev=1327015&view=rev
Log:
* subversion/tests/libsvn_subr/named_atomic-test.c
(test_bignums, test_multiple_atomics, test_namespaces,
test_multithreaded, test_multiprocess): Add initialisation so tests
can be run individually.
Modified:
subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c?rev=1327015&r1=1327014&r2=1327015&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test.c Tue Apr 17 09:42:42 2012
@@ -483,6 +483,8 @@ test_bignums(apr_pool_t *pool)
if (!has_sufficient_privileges())
return SVN_NO_ERROR;
+ SVN_ERR(init_test_shm(pool));
+
/* Use a separate namespace for our tests isolate them from production */
SVN_ERR(svn_atomic_namespace__create(&ns, name_namespace, pool));
@@ -537,6 +539,8 @@ test_multiple_atomics(apr_pool_t *pool)
if (!has_sufficient_privileges())
return SVN_NO_ERROR;
+ SVN_ERR(init_test_shm(pool));
+
/* Use a separate namespace for our tests isolate them from production */
SVN_ERR(svn_atomic_namespace__create(&ns, name_namespace, pool));
@@ -603,6 +607,8 @@ test_namespaces(apr_pool_t *pool)
if (!has_sufficient_privileges())
return SVN_NO_ERROR;
+ SVN_ERR(init_test_shm(pool));
+
/* Use a separate namespace for our tests isolate them from production */
SVN_ERR(svn_atomic_namespace__create(&test_namespace1, name_namespace1, pool));
SVN_ERR(svn_atomic_namespace__create(&test_namespace1_alias, name_namespace1, pool));
@@ -645,6 +651,8 @@ test_multithreaded(apr_pool_t *pool)
if (!has_sufficient_privileges())
return SVN_NO_ERROR;
+ SVN_ERR(init_test_shm(pool));
+
SVN_ERR(calibrate_concurrency(pool));
SVN_ERR(init_concurrency_test_shm(pool, hw_thread_count));
@@ -661,6 +669,8 @@ test_multiprocess(apr_pool_t *pool)
if (!has_sufficient_privileges())
return SVN_NO_ERROR;
+ SVN_ERR(init_test_shm(pool));
+
SVN_ERR(calibrate_concurrency(pool));
SVN_ERR(init_concurrency_test_shm(pool, hw_thread_count));