[sancov] Accommodate sancov and coverage report server for use under Windows
authorVitaly Buka <vitalybuka@google.com>
Sat, 12 Oct 2019 02:29:26 +0000 (02:29 +0000)
committerVitaly Buka <vitalybuka@google.com>
Sat, 12 Oct 2019 02:29:26 +0000 (02:29 +0000)
commit23aa2aec78181fa064191b8f3c1c5b3ffa1c9424
tree8f42b9d63b682fff0835cfd3bde006dc5f4613d3
parente8a462a01923676860ee4d7b0d191043ea4b9f63
[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-svn: 374629
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