diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-07-24 18:22:33 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-07-24 18:22:33 +0000 |
commit | 50bfae49ead55180ef53c2975a2c8141327cbd55 (patch) | |
tree | c3a6e90b155ca05dd264baed84974084f23f0e03 /test/scudo | |
parent | 5884a6648ad229cc07706b32bfc3734e3313f231 (diff) |
[scudo] Fix QuarantineChunksUpToSize failing test on AArch64
Summary:
Warm-up the other 2 sizes used by the tests, which should get rid of a failure
on AArch64.
Reviewers: alekseyshl
Reviewed By: alekseyshl
Subscribers: aemerson, rengolin, llvm-commits, kristof.beyls
Differential Revision: https://reviews.llvm.org/D35806
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@308907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/scudo')
-rw-r--r-- | test/scudo/quarantine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/scudo/quarantine.cpp b/test/scudo/quarantine.cpp index cfa9aa919..89560dffd 100644 --- a/test/scudo/quarantine.cpp +++ b/test/scudo/quarantine.cpp @@ -28,9 +28,15 @@ int main(int argc, char **argv) p = malloc(size); assert(p); free(p); + p = malloc(size + 1); + assert(p); + free(p); assert(posix_memalign(&p, alignment, size) == 0); assert(p); free(p); + assert(posix_memalign(&p, alignment, size + 1) == 0); + assert(p); + free(p); if (!strcmp(argv[1], "zeroquarantine")) { // Verifies that a chunk is deallocated right away when the local and |