diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-07-25 14:05:06 -0400 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-07-25 14:19:08 -0400 |
commit | a562bf6d3c9ee3cb4fdf52e34dd1539f819ffa8b (patch) | |
tree | 42e1baee177edeae489ea0c1ca77cbda2532338e /tests/main.cpp | |
parent | 4460da54a17e8403f47a2cc152e72bc209dde264 (diff) |
tests: Only enable page heap on x86/x64
This fixes tests in PUGIXML_NO_XPATH mode on SPARC64 (#48).
SPARC does not allow unaligned accesses - e.g. you can't read an unaligned int.
Normally pugixml does not perform unaligned integer/pointer accesses, but page
heap can allocate blocks that are not aligned so that we can detect a single-
byte read/write overrun.
Additionally, the hardcoded page size we're currently using is really system
specific - on SPARC the page size can be 8 Kb instead of 4 Kb so mprotect can
fail.
Diffstat (limited to 'tests/main.cpp')
0 files changed, 0 insertions, 0 deletions