Author: philip
Date: Fri Feb 22 16:29:19 2013
New Revision: 1449105
URL: http://svn.apache.org/r1449105
Log:
Adjust some test code that isn't usually compiled so that it can be
compiled.
* subversion/tests/libsvn_delta/range-index-test.h
(check_copy_count, random_range_index_test): Update for API changes.
Modified:
subversion/trunk/subversion/tests/libsvn_delta/range-index-test.h
Modified: subversion/trunk/subversion/tests/libsvn_delta/range-index-test.h
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_delta/range-index-test.h?rev=1449105&r1=1449104&r2=1449105&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_delta/range-index-test.h (original)
+++ subversion/trunk/subversion/tests/libsvn_delta/range-index-test.h Fri Feb
22 16:29:19 2013
@@ -136,8 +136,9 @@ check_copy_count(int src_cp, int tgt_cp)
static svn_error_t *
random_range_index_test(apr_pool_t *pool)
{
- unsigned long seed, bytes_range;
- int i, maxlen, iterations, dump_files, print_windows;
+ apr_uint32_t seed, maxlen;
+ apr_size_t bytes_range;
+ int i, iterations, dump_files, print_windows;
const char *random_bytes;
range_index_t *ndx;
int tgt_cp = 0, src_cp = 0;
@@ -153,8 +154,8 @@ random_range_index_test(apr_pool_t *pool
ndx = create_range_index(pool);
for (i = 1; i <= iterations; ++i)
{
- apr_off_t offset = myrand(&seed) % 47;
- apr_off_t limit = offset + myrand(&seed) % 16 + 1;
+ apr_off_t offset = svn_test_rand(&seed) % 47;
+ apr_off_t limit = offset + svn_test_rand(&seed) % 16 + 1;
range_list_node_t *list, *r;
apr_off_t ret;
const char *msg2;
@@ -181,8 +182,7 @@ random_range_index_test(apr_pool_t *pool
printf(" Ooops!\n");
print_range_index(ndx->tree, msg2, ret);
check_copy_count(src_cp, tgt_cp);
- return svn_error_create(SVN_ERR_TEST_FAILED, 0, NULL, pool,
- "insert_range");
+ return svn_error_create(SVN_ERR_TEST_FAILED, NULL, "insert_range");
}
}