mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
69b7763e54
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
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
REQUIRES: x86-registered-target && host-byteorder-little-endian
|
|
RUN: sancov -covered-functions %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s --check-prefix=ALL
|
|
RUN: sancov -covered-functions -blacklist %p/Inputs/fun_blacklist.txt %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
|
|
RUN: sancov -covered-functions -blacklist %p/Inputs/src_blacklist.txt %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.1.sancov | FileCheck --check-prefix=CHECK1 %s
|
|
RUN: sancov -print-coverage-stats %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.1.sancov | FileCheck --check-prefix=STATS %s
|
|
RUN: sancov -print-coverage-stats -blacklist %p/Inputs/fun_blacklist.txt %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.1.sancov | FileCheck --check-prefix=STATS-BLIST %s
|
|
|
|
ALL: test.cpp:12 bar(std::string)
|
|
ALL: test.cpp:14 main
|
|
|
|
CHECK-NOT: test.cpp:12 bar(std::string)
|
|
CHECK: test.cpp:14 main
|
|
|
|
CHECK1-NOT: test.cpp:12 bar(std::string)
|
|
CHECK1-NOT: test.cpp:14 main
|
|
|
|
STATS: all-edges: 9
|
|
STATS: cov-edges: 7
|
|
STATS: all-functions: 3
|
|
STATS: cov-functions: 3
|
|
|
|
STATS-BLIST: all-edges: 8
|
|
STATS-BLIST: cov-edges: 6
|
|
STATS-BLIST: all-functions: 2
|
|
STATS-BLIST: cov-functions: 2
|
|
|