diff options
author | tingyuan <thuang@mozilla.com> | 2013-04-16 15:10:54 +0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-21 17:09:58 -0700 |
commit | 57f6085b3cba9d1f3518473252dfd6f5dec9045b (patch) | |
tree | bbab4ba9152f1681f9fd1de3963f6ec36f1e2300 /tests | |
parent | de2dab04c9cd604c138efd6bec43071ded5eaf27 (diff) |
Unleash the 4k alignment of mmap() in the test_mmap().
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index f6a2c8b1..dba69e4e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7760,7 +7760,9 @@ void*:16 for (int i = 0; i < 10; i++) { int* map = (int*)mmap(0, 5000, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); + /* TODO: Should we align to 4k? assert(((int)map) % 4096 == 0); // aligned + */ assert(munmap(map, 5000) == 0); } |