If html_cov_report is set and sancov binary is found, the html report would be generated automatically on coverage dump.
Details
Diff Detail
Event Timeline
lib/sanitizer_common/sanitizer_common.cc | ||
---|---|---|
426 | remove {} | |
lib/sanitizer_common/sanitizer_common_nolibc.cc | ||
27 ↗ | (On Diff #45602) | this is gross :) |
lib/sanitizer_common/sanitizer_coverage_libcdep.cc | ||
793 | you need InternalScopedString | |
830 | put this into a separate function |
lib/sanitizer_common/sanitizer_coverage_libcdep.cc | ||
---|---|---|
787 | Consider adding an early return here instead if (!common_flags()->html_cov_report || sancov_args[0] == nullptr) | |
800 | Don't you want to log unsuccessful attempt to generate html? | |
lib/sanitizer_common/sanitizer_flags.inc | ||
206 | Is sancov_path more appropriate flag name? | |
test/asan/lit.cfg | ||
144 | I think you should use llvm_tools_dir instead. See the way it's handled in test/lit.common.cfg: probably you want to add this functionality there. Also, as LLVM tools directory is in PATH, auto-discovery of "sancov" binary must work in the lit test (in the same way we auto-discover llvm-symbolizer). | |
147 | You have to explicitly add dependency on "sancov" binary from sanitizer test suites: see test/CMakeLists.txt |
all done.
lib/sanitizer_common/sanitizer_coverage_libcdep.cc | ||
---|---|---|
800 | StartSubprocess & WaitForPid have logging inside. I was relying on those. |
remove {}