diff options
author | Scott D Phillips <[email protected]> | 2018-05-04 17:11:13 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-05-31 16:51:35 -0700 |
commit | 943fecc5691b55b8ce8740d133dd70614effb72d (patch) | |
tree | aa5bd576ca6fb71554e742460c69e90a86588a17 /bin | |
parent | f19ad5d31fde8c447119c5483b3e3972922e9991 (diff) |
util: Add a randomized test for the virtual memory allocator
The test pseudo-randomly makes allocations and deallocations with
the virtual memory allocator and checks that the results are
consistent. Specifically, we test that:
* no result from the allocator overlaps an already allocated range
* allocated memory fulfills the stated alignment requirement
* a failed result from the allocator could not have been fulfilled
* memory freed to the allocator can later be allocated again
v2: - fix if() in test() to actually run fill()
v3: - add c++11 build flag (Jason)
- test the full 64-bit range (Jason)
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions