[sancov] Accommodate sancov and coverage report server for use under Windows
authorVitaly Buka <vitalybuka@google.com>
Tue, 26 May 2020 21:27:22 +0000 (14:27 -0700)
committerVitaly Buka <vitalybuka@google.com>
Tue, 26 May 2020 21:36:44 +0000 (14:36 -0700)
commit6a74ad6baad45b8572d196f7f290593ed62075b5
treeb0db7615e97a264a2ff9c28ced913c0118cebd64
parent6e39379bbbe1d8aba658f638dfc42f0ba0cbb926
[sancov] Accommodate sancov and coverage report server for use under Windows

Summary:
This patch makes the following changes to SanCov and its complementary Python script in order to resolve issues pertaining to non-UNIX file paths in JSON symbolization information:
* Convert all paths to use forward slash.
* Update `coverage-report-server.py` to correctly handle paths to sources which contain spaces.
* Remove Linux platform restriction for all SanCov unit tests. All SanCov tests passed when ran on my local Windows machine.

Patch by Douglas Gliner.

Reviewers: kcc, filcab, phosek, morehouse, vitalybuka, metzman

Reviewed By: vitalybuka

Subscribers: vsk, Dor1s, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D51018
llvm/test/tools/sancov/blacklist.test
llvm/test/tools/sancov/covered_functions.test
llvm/test/tools/sancov/merge.test
llvm/test/tools/sancov/not_covered_functions.test
llvm/test/tools/sancov/print.test
llvm/test/tools/sancov/stats.test
llvm/test/tools/sancov/symbolize.test
llvm/test/tools/sancov/symbolize_noskip_dead_files.test
llvm/test/tools/sancov/validation.test
llvm/tools/sancov/coverage-report-server.py
llvm/tools/sancov/sancov.cpp