~ubuntu-branches/ubuntu/jaunty/apache2/jaunty-proposed

« back to all changes in this revision

Viewing changes to srclib/apr/test/testlfs.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-12-15 00:06:50 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081215000650-5ovq2vvvrtmn5r1l
Tags: 2.2.11-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/{control, rules}: enable PIE hardening.
  - debian/{control, rules, apache2.2-common.ufw.profile}: add ufw profiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
{
252
252
    apr_mmap_t *map;
253
253
    apr_file_t *fh;
254
 
    apr_size_t len = 16384; /* hopefully a multiple of the page size */
 
254
    apr_size_t len = 65536; /* hopefully a multiple of the page size */
255
255
    apr_off_t off = eightGB - len; 
256
256
    apr_status_t rv;
257
257
    void *ptr;
267
267
 
268
268
    APR_ASSERT_SUCCESS(tc, "close file", apr_file_close(fh));
269
269
 
270
 
    ABTS_ASSERT(tc, "mapped a 16K block", map->size == len);
 
270
    ABTS_ASSERT(tc, "mapped a 64K block", map->size == len);
271
271
    
272
272
    APR_ASSERT_SUCCESS(tc, "get pointer into mmaped region",
273
273
                       apr_mmap_offset(&ptr, map, len - 4));