forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert users of DoReturnNullTest to be death tests
This worker function is designed to test the behaviour of the partition allocator by restricting the amount of memory available and then intentionally exhausting it. Doing this leaves some of the global state associated with the allocator in a bad state. Thus these tests are non-hermetic. This Cl wraps up the call to the work function in a EXPECT_DEATH to force the test to be run its own process, which prevents the tests from poluting other tests. This removes the need to have them in their own class and eliminates the flakiness being seen, since run order no longer affects the viability of future test cases. BUG=chromium:851148 Change-Id: I6d63b769d73c0e725a4e0c811d816b62ad15d57b Reviewed-on: https://chromium-review.googlesource.com/1106602 Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org> Cr-Commit-Position: refs/heads/master@{#570041}
- Loading branch information
Showing
2 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters