OSDN Git Service

[libFuzzer] disable leak detection if we have tried it for 1000 times w/o finding...
authorKostya Serebryany <kcc@google.com>
Wed, 27 Apr 2016 19:52:56 +0000 (19:52 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 27 Apr 2016 19:52:56 +0000 (19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267771 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/test/fuzzer-leak.test

index 25c1f45..d86a8f6 100644 (file)
@@ -20,4 +20,5 @@ RUN: not LLVMFuzzer-LeakTimeoutTest -timeout=1 2>&1 | FileCheck %s --check-prefi
 LEAK_TIMEOUT: ERROR: libFuzzer: timeout after
 LEAK_TIMEOUT-NOT: LeakSanitizer
 
-
+RUN: LLVMFuzzer-AccumulateAllocationsTest -detect_leaks=1 -runs=100000 2>&1 | FileCheck %s --check-prefix=ACCUMULATE_ALLOCS
+ACCUMULATE_ALLOCS: INFO: libFuzzer disabled leak detection after every mutation