2016-06-07 06:44:39 +02:00
|
|
|
REQUIRES: lsan
|
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
|
|
|
|
|
|
|
|
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
|
2016-05-26 22:25:49 +02:00
|
|
|
LEAK_IN_CORPUS: INFO: a leak has been found in the initial corpus.
|
2016-04-20 02:24:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
RUN: not LLVMFuzzer-LeakTest -runs=100000 -detect_leaks=0 2>&1 | FileCheck %s --check-prefix=LEAK_AFTER
|
2016-04-29 20:49:55 +02:00
|
|
|
RUN: not LLVMFuzzer-LeakTest -runs=100000 2>&1 | FileCheck %s --check-prefix=LEAK_DURING
|
2016-04-20 02:24:21 +02:00
|
|
|
LEAK_AFTER: Done 100000 runs in
|
|
|
|
LEAK_AFTER: ERROR: LeakSanitizer: detected memory leaks
|
2016-03-24 02:32:08 +01:00
|
|
|
|
2016-05-27 02:21:33 +02:00
|
|
|
RUN: not LLVMFuzzer-LeakTest -runs=100000 -max_len=1 2>&1 | FileCheck %s --check-prefix=MAX_LEN_1
|
|
|
|
MAX_LEN_1: Test unit written to ./leak-7cf184f4c67ad58283ecb19349720b0cae756829
|
|
|
|
|
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
|