apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r669134 - /apr/apr/branches/1.3.x/test/testlfs.c
Date Wed, 18 Jun 2008 11:11:36 GMT
Author: rpluem
Date: Wed Jun 18 04:11:35 2008
New Revision: 669134

URL: http://svn.apache.org/viewvc?rev=669134&view=rev
Log:
Merge r669111 from trunk:

* 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.

Submitted by: rpluem
Reviewed by: pluem

Modified:
    apr/apr/branches/1.3.x/test/testlfs.c

Modified: apr/apr/branches/1.3.x/test/testlfs.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/test/testlfs.c?rev=669134&r1=669133&r2=669134&view=diff
==============================================================================
--- apr/apr/branches/1.3.x/test/testlfs.c (original)
+++ apr/apr/branches/1.3.x/test/testlfs.c Wed Jun 18 04:11:35 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));



Mime
View raw message