summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorrpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68>2008-06-18 08:36:17 +0000
committerrpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68>2008-06-18 08:36:17 +0000
commitff1241eea4a0e1cab1596623bd6cf7b0b8c6bcdf (patch)
treed1ed353577ba56a043833a26f4354a9534994e4c /test
parente4326abe7a70c0687df242fba4e06a5d25dbf9db (diff)
downloadlibapr-ff1241eea4a0e1cab1596623bd6cf7b0b8c6bcdf.tar.gz
* 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. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@669111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/testlfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testlfs.c b/test/testlfs.c
index 13bff9bc4..a81d53668 100644
--- a/test/testlfs.c
+++ b/test/testlfs.c
@@ -251,7 +251,7 @@ static void test_mmap(abts_case *tc, void *data)
{
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 @@ static void test_mmap(abts_case *tc, void *data)
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));