summaryrefslogtreecommitdiff
path: root/test/scudo
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2017-02-03 21:59:00 +0000
committerKostya Kortchinsky <kostyak@google.com>2017-02-03 21:59:00 +0000
commit63588eb7f2f0daf533c1de0c7c7eaba3e715559b (patch)
treefae8721ddbb1d362e499ec98655830a94b121d7b /test/scudo
parent044cfea04848ec011bb35575a28dfb0165db85cf (diff)
[scudo] Fix buildbot test error on ARM
Summary: The assumption __sanitizer_get_heap_size() == 0 (introduced in D29341) at the start of a program appears to be incorrect on some ARM machines (SizeClassAllocator32). This should fix the test while I investigate the issue. Reviewers: kcc, alekseyshl Reviewed By: alekseyshl Subscribers: aemerson, rengolin, llvm-commits Differential Revision: https://reviews.llvm.org/D29516 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@294056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/scudo')
-rw-r--r--test/scudo/interface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/scudo/interface.cpp b/test/scudo/interface.cpp
index c5a887780..e9575adf3 100644
--- a/test/scudo/interface.cpp
+++ b/test/scudo/interface.cpp
@@ -39,8 +39,8 @@ int main(int argc, char **argv)
}
if (!strcmp(argv[1], "heap-size")) {
// Ensures that __sanitizer_get_heap_size can be called before any other
- // allocator function. At this point, this heap size should be 0.
- assert(__sanitizer_get_heap_size() == 0);
+ // allocator function.
+ assert(__sanitizer_get_heap_size() >= 0);
}
return 0;