You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/07/13 13:26:33 UTC
svn commit: r1502776 -
/subversion/trunk/subversion/tests/libsvn_subr/io-test.c
Author: stefan2
Date: Sat Jul 13 11:26:33 2013
New Revision: 1502776
URL: http://svn.apache.org/r1502776
Log:
Fix the aligned seek test failure under Windows. Manipulating read buffer
sizes makes only sense when there is file buffering to begin with.
* subversion/tests/libsvn_subr/io-test.c
(aligned_seek_test): use buffered I/O
Modified:
subversion/trunk/subversion/tests/libsvn_subr/io-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/io-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/io-test.c?rev=1502776&r1=1502775&r2=1502776&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/io-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/io-test.c Sat Jul 13 11:26:33 2013
@@ -625,7 +625,8 @@ aligned_seek_test(apr_pool_t *pool)
svn_io_file_del_on_pool_cleanup, pool));
/* now, access read data with varying alignment sizes */
- SVN_ERR(svn_io_file_open(&f, tmp_file, APR_READ, APR_OS_DEFAULT, pool));
+ 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 */