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
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
REQUIRES: x86-registered-target && host-byteorder-little-endian
|
|
RUN: sancov -symbolize -skip-dead-files=0 -strip_path_prefix="llvm/" %p/Inputs/test-linux_x86_64 %p/Inputs/test-linux_x86_64.0.sancov | FileCheck %s
|
|
|
|
CHECK: {
|
|
CHECK-NEXT: "covered-points": [
|
|
CHECK-NEXT: "4e132b",
|
|
CHECK-NEXT: "4e1472",
|
|
CHECK-NEXT: "4e1520",
|
|
CHECK-NEXT: "4e1553",
|
|
CHECK-NEXT: "4e1586"
|
|
CHECK-NEXT: ],
|
|
CHECK-NEXT: "binary-hash": "BB3CDD5045AED83906F6ADCC1C4DAF7E2596A6B5",
|
|
CHECK-NEXT: "point-symbol-info": {
|
|
CHECK-NEXT: "test/tools/sancov/Inputs/foo.cpp": {
|
|
CHECK-NEXT: "foo()": {
|
|
CHECK-NEXT: "4e178c": "5:0"
|
|
CHECK-NEXT: }
|
|
CHECK-NEXT: },
|
|
CHECK-NEXT: "test/tools/sancov/Inputs/test.cpp": {
|
|
CHECK-NEXT: "bar(std::string)": {
|
|
CHECK-NEXT: "4e132b": "12:0"
|
|
CHECK-NEXT: },
|
|
CHECK-NEXT: "main": {
|
|
CHECK-NEXT: "4e1472": "14:0",
|
|
CHECK-NEXT: "4e14c2": "16:9",
|
|
CHECK-NEXT: "4e1520": "17:5",
|
|
CHECK-NEXT: "4e1553": "17:5",
|
|
CHECK-NEXT: "4e1586": "17:5",
|
|
CHECK-NEXT: "4e1635": "19:1",
|
|
CHECK-NEXT: "4e1690": "17:5"
|
|
CHECK-NEXT: }
|
|
CHECK-NEXT: }
|
|
CHECK-NEXT: }
|
|
CHECK-NEXT:}
|