You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rp...@apache.org on 2008/06/18 10:36:19 UTC
svn commit: r669111 - /apr/apr/trunk/test/testlfs.c
Author: rpluem
Date: Wed Jun 18 01:36:17 2008
New Revision: 669111
URL: http://svn.apache.org/viewvc?rev=669111&view=rev
Log:
* Increase the size of the mapped block from 16k to 64k since the default page
size for linux on ppc64 architecture is sometimes 64k depending on how the
kernel was compiled. The increase in the block size does not harm any
platforms where this test worked before as 64k is a multiple of 16k.
Modified:
apr/apr/trunk/test/testlfs.c
Modified: apr/apr/trunk/test/testlfs.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testlfs.c?rev=669111&r1=669110&r2=669111&view=diff
==============================================================================
--- apr/apr/trunk/test/testlfs.c (original)
+++ apr/apr/trunk/test/testlfs.c Wed Jun 18 01:36:17 2008
@@ -251,7 +251,7 @@
{
apr_mmap_t *map;
apr_file_t *fh;
- apr_size_t len = 16384; /* hopefully a multiple of the page size */
+ apr_size_t len = 65536; /* hopefully a multiple of the page size */
apr_off_t off = eightGB - len;
apr_status_t rv;
void *ptr;
@@ -267,7 +267,7 @@
APR_ASSERT_SUCCESS(tc, "close file", apr_file_close(fh));
- ABTS_ASSERT(tc, "mapped a 16K block", map->size == len);
+ ABTS_ASSERT(tc, "mapped a 64K block", map->size == len);
APR_ASSERT_SUCCESS(tc, "get pointer into mmaped region",
apr_mmap_offset(&ptr, map, len - 4));