llvm.org GIT mirror llvm / 29a5193
[libFuzzer] explicitly use -fsanitize-coverage=trace-pc-guard in test/dump_coverage.test; mark print_coverage/dump_coverage as To-be-deprecated git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310877 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 2 years ago
3 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
9494 FUZZER_FLAG_INT(print_corpus_stats, 0,
9595 "If 1, print statistics on corpus elements at exit.")
9696 FUZZER_FLAG_INT(print_coverage, 0, "If 1, print coverage information as text"
97 " at exit.")
97 " at exit. To-be-deprecated.")
9898 FUZZER_FLAG_INT(dump_coverage, 0, "If 1, dump coverage information as a"
99 " .sancov file at exit.")
99 " .sancov file at exit. To-be-deprecated.")
100100 FUZZER_FLAG_INT(handle_segv, 1, "If 1, try to intercept SIGSEGV.")
101101 FUZZER_FLAG_INT(handle_bus, 1, "If 1, try to intercept SIGBUS.")
102102 FUZZER_FLAG_INT(handle_abrt, 1, "If 1, try to intercept SIGABRT.")
None RUN: %cpp_compiler %S/DSO1.cpp -fPIC -shared -o %t-DSO1.so
1 RUN: %cpp_compiler %S/DSO2.cpp -fPIC -shared -o %t-DSO2.so
2 RUN: %cpp_compiler %S/DSOTestMain.cpp %S/DSOTestExtra.cpp -L. %t-DSO1.so %t-DSO2.so -o %t-DSOTest
0 RUN: %cpp_compiler -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard %S/DSO1.cpp -fPIC -shared -o %t-DSO1.so
1 RUN: %cpp_compiler -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard %S/DSO2.cpp -fPIC -shared -o %t-DSO2.so
2 RUN: %cpp_compiler -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard %S/DSOTestMain.cpp %S/DSOTestExtra.cpp -L. %t-DSO1.so %t-DSO2.so -o %t-DSOTest
33
4 RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest
4 RUN: %cpp_compiler -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard %S/NullDerefTest.cpp -o %t-NullDerefTest
55
66 RUN: rm -rf %t_workdir && mkdir -p %t_workdir
77 RUN: env ASAN_OPTIONS=coverage_dir='"%t_workdir"' not %t-NullDerefTest -dump_coverage=1 2>&1 | FileCheck %s
77 RUN: %cpp_compiler %S/DSOTestMain.cpp %S/DSOTestExtra.cpp -L. %t-DSO1.so %t-DSO2.so -o %t-DSOTest
88 RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t-FullCoverageSetTest
99 RUN: %cpp_compiler %S/InitializeTest.cpp -o %t-InitializeTest
10 RUN: %cpp_compiler %S/NotinstrumentedTest.cpp -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard -o %t-NotinstrumentedTest-NoCoverage
10 RUN: %cpp_compiler %S/NotinstrumentedTest.cpp -fsanitize-coverage=0 -o %t-NotinstrumentedTest-NoCoverage
1111 RUN: %cpp_compiler %S/NullDerefOnEmptyTest.cpp -o %t-NullDerefOnEmptyTest
1212 RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest
1313 RUN: %cpp_compiler %S/SimpleCmpTest.cpp -o %t-SimpleCmpTest