summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-10-18 18:38:08 +0000
committerKostya Serebryany <kcc@google.com>2016-10-18 18:38:08 +0000
commitbb59ef77cafb7a900a977f9c6bc2a2a62c17ee8b (patch)
treea2152a7757804616929f4867c5e07542816dbc84 /llvm/lib/Fuzzer/test
parent19601fa58772d1f3213e969bd8b2123d7918bf91 (diff)
downloadbcm5719-llvm-bb59ef77cafb7a900a977f9c6bc2a2a62c17ee8b.tar.gz
bcm5719-llvm-bb59ef77cafb7a900a977f9c6bc2a2a62c17ee8b.zip
[libFuzzer] detect leaks after every run when executing fixed inputs (./fuzzer -runs=1000000 my-file)
llvm-svn: 284514
Diffstat (limited to 'llvm/lib/Fuzzer/test')
-rw-r--r--llvm/lib/Fuzzer/test/fuzzer-leak.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/fuzzer-leak.test b/llvm/lib/Fuzzer/test/fuzzer-leak.test
index 59ba02cd7d2..da932308e55 100644
--- a/llvm/lib/Fuzzer/test/fuzzer-leak.test
+++ b/llvm/lib/Fuzzer/test/fuzzer-leak.test
@@ -11,6 +11,9 @@ RUN: not LLVMFuzzer-LeakTest -runs=0 -detect_leaks=1 %S 2>&1 | FileCheck %s --ch
LEAK_IN_CORPUS: ERROR: LeakSanitizer: detected memory leaks
LEAK_IN_CORPUS: INFO: a leak has been found in the initial corpus.
+RUN: not LLVMFuzzer-LeakTest -runs=100000000 %S/hi.txt 2>&1 | FileCheck %s --check-prefix=MULTI_RUN_LEAK
+MULTI_RUN_LEAK-NOT: pulse
+MULTI_RUN_LEAK: LeakSanitizer: detected memory leaks
RUN: not LLVMFuzzer-LeakTest -runs=100000 -detect_leaks=0 2>&1 | FileCheck %s --check-prefix=LEAK_AFTER
RUN: not LLVMFuzzer-LeakTest -runs=100000 2>&1 | FileCheck %s --check-prefix=LEAK_DURING
OpenPOWER on IntegriCloud