You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/01/26 16:07:57 UTC
svn commit: r1561502 [3/3] - in /subversion/branches/fsfs-ucsnorm: ./ build/
build/ac-macros/ build/generator/ build/generator/templates/
subversion/bindings/javahl/src/org/apache/subversion/javahl/
subversion/bindings/javahl/src/org/apache/subversion/...
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/io-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/io-test.c?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/io-test.c (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/io-test.c Sun Jan 26 15:07:56 2014
@@ -534,12 +534,14 @@ read_length_line_shouldnt_loop(apr_pool_
}
/* Move the read pointer in FILE to absolute position OFFSET and align
- * the read buffer to multiples of BLOCK_SIZE. Use POOL for allocations.
+ * the read buffer to multiples of BLOCK_SIZE. BUFFERED is set only if
+ * FILE actually uses a read buffer. Use POOL for allocations.
*/
static svn_error_t *
aligned_seek(apr_file_t *file,
apr_size_t block_size,
apr_size_t offset,
+ svn_boolean_t buffered,
apr_pool_t *pool)
{
apr_off_t block_start;
@@ -551,13 +553,16 @@ aligned_seek(apr_file_t *file,
/* block start shall be aligned to multiples of block_size.
If it isn't, it must be aligned to APR's default block size(pre-1.3 APR)
*/
+ if (buffered)
+ {
#if APR_VERSION_AT_LEAST(1,3,0)
- SVN_TEST_ASSERT(block_start % block_size == 0);
- SVN_TEST_ASSERT(offset - block_start < block_size);
+ SVN_TEST_ASSERT(block_start % block_size == 0);
+ SVN_TEST_ASSERT(offset - block_start < block_size);
#else
- SVN_TEST_ASSERT(block_start % 0x1000 == 0);
- SVN_TEST_ASSERT(offset - block_start < 0x1000);
+ SVN_TEST_ASSERT(block_start % 0x1000 == 0);
+ SVN_TEST_ASSERT(offset - block_start < 0x1000);
#endif
+ }
/* we must be at the desired offset */
current = 0;
@@ -570,6 +575,7 @@ aligned_seek(apr_file_t *file,
/* Move the read pointer in FILE to absolute position OFFSET, align the
* read buffer to multiples of BLOCK_SIZE and read one byte from that
* position. Verify that it matches the CONTENTS for that offset.
+ * BUFFERED is set only if FILE actually uses a read buffer.
* Use POOL for allocations.
*/
static svn_error_t *
@@ -577,10 +583,11 @@ aligned_read_at(apr_file_t *file,
svn_stringbuf_t *contents,
apr_size_t block_size,
apr_size_t offset,
+ svn_boolean_t buffered,
apr_pool_t *pool)
{
char c;
- SVN_ERR(aligned_seek(file, block_size, offset,pool));
+ SVN_ERR(aligned_seek(file, block_size, offset, buffered, pool));
/* the data we read must match whatever we wrote there */
SVN_ERR(svn_io_file_getc(&c, file, pool));
@@ -590,12 +597,14 @@ aligned_read_at(apr_file_t *file,
}
/* Verify that aligned seek with the given BLOCK_SIZE works for FILE.
- * CONTENTS is the data expected from FILE. Use POOL for allocations.
+ * CONTENTS is the data expected from FILE. BUFFERED is set only if FILE
+ * actually uses a read buffer. Use POOL for allocations.
*/
static svn_error_t *
aligned_read(apr_file_t *file,
svn_stringbuf_t *contents,
apr_size_t block_size,
+ svn_boolean_t buffered,
apr_pool_t *pool)
{
apr_size_t i;
@@ -605,18 +614,19 @@ aligned_read(apr_file_t *file,
/* "random" access to different offsets */
for (i = 0, offset = prime; i < 10; ++i, offset += prime)
SVN_ERR(aligned_read_at(file, contents, block_size,
- offset % contents->len, pool));
+ offset % contents->len, buffered, pool));
/* we can seek to EOF */
- SVN_ERR(aligned_seek(file, contents->len, block_size, pool));
+ SVN_ERR(aligned_seek(file, contents->len, block_size, buffered, pool));
/* reversed order access to all bytes */
for (i = contents->len; i > 0; --i)
- SVN_ERR(aligned_read_at(file, contents, block_size, i - 1, pool));
+ SVN_ERR(aligned_read_at(file, contents, block_size, i - 1, buffered,
+ pool));
/* forward order access to all bytes */
for (i = 0; i < contents->len; ++i)
- SVN_ERR(aligned_read_at(file, contents, block_size, i, pool));
+ SVN_ERR(aligned_read_at(file, contents, block_size, i, buffered, pool));
return SVN_NO_ERROR;
}
@@ -651,14 +661,26 @@ aligned_seek_test(apr_pool_t *pool)
/* now, access read data with varying alignment sizes */
SVN_ERR(svn_io_file_open(&f, tmp_file, APR_READ | APR_BUFFERED,
APR_OS_DEFAULT, pool));
- SVN_ERR(aligned_read(f, contents, 0x1000, pool)); /* APR default */
- SVN_ERR(aligned_read(f, contents, 0x8000, pool)); /* "unusual" 32K */
- SVN_ERR(aligned_read(f, contents, 0x10000, pool)); /* FSX default */
- SVN_ERR(aligned_read(f, contents, 0x100000, pool)); /* larger than file */
- SVN_ERR(aligned_read(f, contents, 10001, pool)); /* odd, larger than
- APR default */
- SVN_ERR(aligned_read(f, contents, 1003, pool)); /* odd, smaller than
- APR default */
+ SVN_ERR(aligned_read(f, contents, 0x1000, TRUE, pool)); /* APR default */
+ SVN_ERR(aligned_read(f, contents, 0x8000, TRUE, pool)); /* "unusual" 32K */
+ SVN_ERR(aligned_read(f, contents, 0x10000, TRUE, pool)); /* FSX default */
+ SVN_ERR(aligned_read(f, contents, 0x100000, TRUE, pool)); /* larger than file */
+ SVN_ERR(aligned_read(f, contents, 10001, TRUE, pool)); /* odd, larger than
+ APR default */
+ SVN_ERR(aligned_read(f, contents, 1003, TRUE, pool)); /* odd, smaller than
+ APR default */
+ SVN_ERR(svn_io_file_close(f, pool));
+
+ /* now, try read data with buffering disabled.
+ That are a special case because APR reports a buffer size of 0. */
+ SVN_ERR(svn_io_file_open(&f, tmp_file, APR_READ, APR_OS_DEFAULT, pool));
+ SVN_ERR(aligned_read(f, contents, 0x1000, FALSE, pool));
+ SVN_ERR(aligned_read(f, contents, 0x8000, FALSE, pool));
+ SVN_ERR(aligned_read(f, contents, 0x10000, FALSE, pool));
+ SVN_ERR(aligned_read(f, contents, 0x100000, FALSE, pool));
+ SVN_ERR(aligned_read(f, contents, 10001, FALSE, pool));
+ SVN_ERR(aligned_read(f, contents, 1003, FALSE, pool));
+ SVN_ERR(svn_io_file_close(f, pool));
return SVN_NO_ERROR;
}
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/sqlite-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/sqlite-test.c?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/sqlite-test.c (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_subr/sqlite-test.c Sun Jan 26 15:07:56 2014
@@ -83,7 +83,8 @@ test_sqlite_reset(apr_pool_t *pool)
};
SVN_ERR(open_db(&sdb, "reset", statements, pool));
- SVN_ERR(svn_sqlite__create_scalar_function(sdb, "error_second", 1,
+ SVN_ERR(svn_sqlite__create_scalar_function(sdb, "error_second",
+ 1, FALSE /* deterministic */,
error_second, NULL));
SVN_ERR(svn_sqlite__exec_statements(sdb, 0));
SVN_ERR(svn_sqlite__get_statement(&stmt, sdb, 1));
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/db-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/db-test.c?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/db-test.c (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/db-test.c Sun Jan 26 15:07:56 2014
@@ -343,10 +343,12 @@ create_open(svn_wc__db_t **db,
subdir, pool),
pool));
- svn_test_add_dir_cleanup(*local_abspath);
+ SVN_ERR(svn_io_remove_dir2(*local_abspath, TRUE, NULL, NULL, pool));
SVN_ERR(svn_wc__db_open(db, NULL, FALSE, TRUE, pool, pool));
- SVN_ERR(svn_test__create_fake_wc(*local_abspath, TESTING_DATA, pool, pool));
+ SVN_ERR(svn_test__create_fake_wc(*local_abspath, TESTING_DATA, pool));
+
+ svn_test_add_dir_cleanup(*local_abspath);
return SVN_NO_ERROR;
}
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/entries-compat.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/entries-compat.c?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/entries-compat.c (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/entries-compat.c Sun Jan 26 15:07:56 2014
@@ -310,10 +310,7 @@ create_fake_wc(const char *subdir, apr_p
SVN_ERR(svn_io_remove_dir2(root, TRUE, NULL, NULL, pool));
SVN_ERR(svn_dirent_get_absolute(&wc_abspath, root, pool));
- SVN_ERR(svn_test__create_fake_wc(wc_abspath, TESTING_DATA, pool, pool));
-
- wc_abspath = svn_dirent_join(wc_abspath, "M", pool);
- SVN_ERR(svn_test__create_fake_wc(wc_abspath, M_TESTING_DATA, pool, pool));
+ SVN_ERR(svn_test__create_fake_wc(wc_abspath, 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,
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/op-depth-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/op-depth-test.c?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/op-depth-test.c (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/op-depth-test.c Sun Jan 26 15:07:56 2014
@@ -268,7 +268,8 @@ check_db_rows(svn_test__sandbox_t *b,
" properties"
" FROM nodes "
" LEFT OUTER JOIN externals"
- " ON nodes.local_relpath = externals.local_relpath"
+ " ON nodes.wc_id = externals.wc_id "
+ " AND nodes.local_relpath = externals.local_relpath"
" WHERE nodes.local_relpath = ?1 OR nodes.local_relpath LIKE ?2",
NULL };
#define STMT_SELECT_NODES_INFO 0
@@ -9576,13 +9577,13 @@ struct svn_test_descriptor_t test_funcs[
"move_replace"),
SVN_TEST_OPTS_PASS(layered_moved_to,
"layered_moved_to"),
- SVN_TEST_OPTS_PASS(update_within_move,
+ SVN_TEST_OPTS_XFAIL(update_within_move,
"update_within_move"),
SVN_TEST_OPTS_PASS(commit_moved_descendant,
"commit_moved_descendant"),
SVN_TEST_OPTS_XFAIL(commit_moved_away_descendant,
"commit_moved_away_descendant"),
- SVN_TEST_OPTS_PASS(finite_move_update_bump,
+ SVN_TEST_OPTS_XFAIL(finite_move_update_bump,
"finite_move_update_bump"),
SVN_TEST_OPTS_PASS(move_away_delete_update,
"move_away_delete_update"),
@@ -9598,7 +9599,7 @@ struct svn_test_descriptor_t test_funcs[
"new_basemove"),
SVN_TEST_OPTS_PASS(move_back,
"move_back (issue 4302)"),
- SVN_TEST_OPTS_PASS(move_update_subtree,
+ SVN_TEST_OPTS_XFAIL(move_update_subtree,
"move_update_subtree (issue 4232)"),
SVN_TEST_OPTS_PASS(move_parent_into_child,
"move_parent_into_child (issue 4333)"),
@@ -9608,7 +9609,7 @@ struct svn_test_descriptor_t test_funcs[
"move retract (issue 4336)"),
SVN_TEST_OPTS_PASS(move_delete_file_externals,
"move/delete file externals (issue 4293)"),
- SVN_TEST_OPTS_PASS(update_with_tree_conflict,
+ SVN_TEST_OPTS_XFAIL(update_with_tree_conflict,
"update with tree conflict (issue 4347)"),
SVN_TEST_OPTS_PASS(move_update_parent_replace,
"move update with replaced parent (issue 4388)"),
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.c?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.c (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.c Sun Jan 26 15:07:56 2014
@@ -107,38 +107,36 @@ WC_QUERIES_SQL_DECLARE_STATEMENTS(statem
svn_error_t *
svn_test__create_fake_wc(const char *wc_abspath,
const char *extra_statements,
- apr_pool_t *result_pool,
apr_pool_t *scratch_pool)
{
const char *dotsvn_abspath = svn_dirent_join(wc_abspath, ".svn",
scratch_pool);
- const char *db_abspath = svn_dirent_join(dotsvn_abspath, "wc.db",
- scratch_pool);
svn_sqlite__db_t *sdb;
const char **my_statements;
int i;
/* Allocate MY_STATEMENTS in RESULT_POOL because the SDB will continue to
* refer to it over its lifetime. */
- my_statements = apr_palloc(result_pool, 6 * sizeof(const char *));
+ my_statements = apr_palloc(scratch_pool, 7 * sizeof(const char *));
my_statements[0] = statements[STMT_CREATE_SCHEMA];
my_statements[1] = statements[STMT_CREATE_NODES];
my_statements[2] = statements[STMT_CREATE_NODES_TRIGGERS];
my_statements[3] = statements[STMT_CREATE_EXTERNALS];
- my_statements[4] = extra_statements;
- my_statements[5] = NULL;
+ my_statements[4] = statements[STMT_INSTALL_SCHEMA_STATISTICS];
+ my_statements[5] = extra_statements;
+ my_statements[6] = NULL;
/* Create fake-wc/SUBDIR/.svn/ for placing the metadata. */
SVN_ERR(svn_io_make_dir_recursively(dotsvn_abspath, scratch_pool));
-
- svn_error_clear(svn_io_remove_file2(db_abspath, FALSE, scratch_pool));
SVN_ERR(svn_wc__db_util_open_db(&sdb, wc_abspath, "wc.db",
svn_sqlite__mode_rwcreate,
FALSE /* exclusive */, my_statements,
- result_pool, scratch_pool));
+ scratch_pool, scratch_pool));
for (i = 0; my_statements[i] != NULL; i++)
SVN_ERR(svn_sqlite__exec_statements(sdb, /* my_statements[] */ i));
+ SVN_ERR(svn_sqlite__close(sdb));
+
return SVN_NO_ERROR;
}
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.h
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.h?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.h (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/libsvn_wc/utils.h Sun Jan 26 15:07:56 2014
@@ -174,7 +174,6 @@ sbox_add_and_commit_greek_tree(svn_test_
svn_error_t *
svn_test__create_fake_wc(const char *wc_abspath,
const char *extra_statements,
- apr_pool_t *result_pool,
apr_pool_t *scratch_pool);
Modified: subversion/branches/fsfs-ucsnorm/subversion/tests/svn_test_main.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/subversion/tests/svn_test_main.c?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/subversion/tests/svn_test_main.c (original)
+++ subversion/branches/fsfs-ucsnorm/subversion/tests/svn_test_main.c Sun Jan 26 15:07:56 2014
@@ -45,6 +45,7 @@
#include "svn_path.h"
#include "svn_ctype.h"
#include "svn_utf.h"
+#include "svn_version.h"
#include "private/svn_cmdline_private.h"
#include "private/svn_atomic.h"
@@ -87,7 +88,7 @@ enum svn_test_mode_t mode_filter = svn_t
static svn_boolean_t parallel = FALSE;
/* Option parsing enums and structures */
-enum {
+enum test_options_e {
help_opt = SVN_OPT_FIRST_LONGOPT_ID,
cleanup_opt,
fstype_opt,
@@ -99,6 +100,7 @@ enum {
allow_segfault_opt,
srcdir_opt,
mode_filter_opt,
+ sqlite_log_opt,
parallel_opt
};
@@ -128,6 +130,8 @@ static const apr_getopt_option_t cl_opti
N_("don't trap seg faults (useful for debugging)")},
{"srcdir", srcdir_opt, 1,
N_("source directory")},
+ {"sqlite-logging", sqlite_log_opt, 0,
+ N_("enable SQLite logging")},
{"parallel", parallel_opt, 0,
N_("allow concurrent execution of tests")},
{0, 0, 0, 0}
@@ -716,11 +720,6 @@ main(int argc, const char *argv[])
#endif /* _MSC_VER >= 1400 */
#endif
- /* Temporary code: Enable Sqlite error log to diagnose buildbot issue.
- ### Perhaps we should later attach this to an environment variable? */
- svn_sqlite__dbg_enable_errorlog();
- /* /Temporary code */
-
if (err)
return svn_cmdline_handle_exit_error(err, pool, prog_name);
while (1)
@@ -794,13 +793,16 @@ main(int argc, const char *argv[])
exit(1);
}
if ((opts.server_minor_version < 3)
- || (opts.server_minor_version > 9))
+ || (opts.server_minor_version > SVN_VER_MINOR))
{
fprintf(stderr, "FAIL: Invalid minor version given\n");
exit(1);
}
break;
}
+ case sqlite_log_opt:
+ svn_sqlite__dbg_enable_errorlog();
+ break;
#if APR_HAS_THREADS
case parallel_opt:
parallel = TRUE;
Modified: subversion/branches/fsfs-ucsnorm/tools/dev/build-svn-deps-win.pl
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/tools/dev/build-svn-deps-win.pl?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/tools/dev/build-svn-deps-win.pl (original)
+++ subversion/branches/fsfs-ucsnorm/tools/dev/build-svn-deps-win.pl Sun Jan 26 15:07:56 2014
@@ -172,7 +172,7 @@ sub set_defaults {
set_default(\$APR_URL, "http://archive.apache.org/dist/apr/apr-$APR_VER.tar.bz2");
set_default(\$APU_URL, "http://archive.apache.org/dist/apr/apr-util-$APU_VER.tar.bz2");
set_default(\$API_URL, "http://archive.apache.org/dist/apr/apr-iconv-$API_VER.tar.bz2");
- set_default(\$ZLIB_URL, 'http://zlib.net/zlib' . remove_dots($ZLIB_VER) . '.zip');
+ set_default(\$ZLIB_URL, "http://sourceforge.net/projects/libpng/files/zlib/$ZLIB_VER/zlib" . remove_dots($ZLIB_VER) . '.zip');
set_default(\$OPENSSL_URL, "http://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz");
set_default(\$PCRE_URL, "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.zip");
set_default(\$BDB_URL, "http://download.oracle.com/berkeley-db/db-5.3.21.zip");
Modified: subversion/branches/fsfs-ucsnorm/tools/dev/unix-build/Makefile.svn
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-ucsnorm/tools/dev/unix-build/Makefile.svn?rev=1561502&r1=1561501&r2=1561502&view=diff
==============================================================================
--- subversion/branches/fsfs-ucsnorm/tools/dev/unix-build/Makefile.svn (original)
+++ subversion/branches/fsfs-ucsnorm/tools/dev/unix-build/Makefile.svn Sun Jan 26 15:07:56 2014
@@ -72,10 +72,10 @@ GNU_ICONV_VER = 1.14
APR_UTIL_VER = 1.4.1
HTTPD_VER = 2.2.26
NEON_VER = 0.29.6
-SERF_VER = 1.3.2
+SERF_VER = 1.3.3
SERF_OLD_VER = 0.3.1
CYRUS_SASL_VER = 2.1.25
-SQLITE_VER = 3071600
+SQLITE_VER = 3080200
LIBMAGIC_VER = 5.11
RUBY_VER = 1.8.7-p358
BZ2_VER = 1.0.6