2016-04-20 02:24:21 +02:00
|
|
|
RUN: not LLVMFuzzer-LeakTest -runs=100000 -detect_leaks=1 2>&1 | FileCheck %s --check-prefix=LEAK_DURING
|
|
|
|
LEAK_DURING: ERROR: LeakSanitizer: detected memory leaks
|
|
|
|
LEAK_DURING: Direct leak of 4 byte(s) in 1 object(s) allocated from:
|
|
|
|
LEAK_DURING-NOT: DONE
|
|
|
|
LEAK_DURING-NOT: Done
|
|
|
|
LEAK_DURING-NOT: DEATH:
|
|
|
|
|
|
|
|
RUN: not LLVMFuzzer-LeakTest -runs=0 -detect_leaks=1 %S 2>&1 | FileCheck %s --check-prefix=LEAK_IN_CORPUS
|
|
|
|
LEAK_IN_CORPUS: ERROR: LeakSanitizer: detected memory leaks
|
|
|
|
LEAK_IN_CORPUS: ERROR: libFuzzer: initial corpus triggers 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_AFTER
|
|
|
|
LEAK_AFTER: Done 100000 runs in
|
|
|
|
LEAK_AFTER: ERROR: LeakSanitizer: detected memory leaks
|
|
|
|
LEAK_AFTER-NOT: DEATH:
|
2016-03-24 02:32:08 +01:00
|
|
|
|
|
|
|
RUN: not LLVMFuzzer-LeakTimeoutTest -timeout=1 2>&1 | FileCheck %s --check-prefix=LEAK_TIMEOUT
|
|
|
|
LEAK_TIMEOUT: ERROR: libFuzzer: timeout after
|
|
|
|
LEAK_TIMEOUT-NOT: LeakSanitizer
|
|
|
|
|
2016-04-27 21:52:56 +02:00
|
|
|
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
|