Clean up preconditions for PartitionAlloc large-memory tests.
- Tweak IsLargeMemoryDevice() to treat devices with _almost_ 2GiB of available memory as "large", to allow for e.g. some memory being reserved for use by devices. - ASSERT, rather than EXPECT, that SetAddressSpaceLimit() succeeds, so that the test will fail fast rather than trying to run, and proceeding to OOM the host system. Bug: 779645 Change-Id: I12eb4cabda28b2fbdb7ef8c5cdee9fb4a60c2781 Reviewed-on: https://chromium-review.googlesource.com/744300Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#512845}
Showing
Please register or sign in to comment