Skip to content

Commit e6f1b72

Browse files
author
Kostya Kortchinsky
committed
[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 llvm-svn: 308907
1 parent 5fbc870 commit e6f1b72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler-rt/test/scudo/quarantine.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@ int main(int argc, char **argv)
2828
p = malloc(size);
2929
assert(p);
3030
free(p);
31+
p = malloc(size + 1);
32+
assert(p);
33+
free(p);
3134
assert(posix_memalign(&p, alignment, size) == 0);
3235
assert(p);
3336
free(p);
37+
assert(posix_memalign(&p, alignment, size + 1) == 0);
38+
assert(p);
39+
free(p);
3440

3541
if (!strcmp(argv[1], "zeroquarantine")) {
3642
// Verifies that a chunk is deallocated right away when the local and

0 commit comments

Comments
 (0)