[compiler-rt] r308907 - [scudo] Fix QuarantineChunksUpToSize failing test on AArch64
Kostya Kortchinsky via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 11:22:33 PDT 2017
Author: cryptoad
Date: Mon Jul 24 11:22:33 2017
New Revision: 308907
URL: http://llvm.org/viewvc/llvm-project?rev=308907&view=rev
Log:
[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
Modified:
compiler-rt/trunk/test/scudo/quarantine.cpp
Modified: compiler-rt/trunk/test/scudo/quarantine.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/scudo/quarantine.cpp?rev=308907&r1=308906&r2=308907&view=diff
==============================================================================
--- compiler-rt/trunk/test/scudo/quarantine.cpp (original)
+++ compiler-rt/trunk/test/scudo/quarantine.cpp Mon Jul 24 11:22:33 2017
@@ -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
More information about the llvm-commits
mailing list