Skip to content

Commit 03f9c40

Browse files
committed
[sanitizer_common][test] Disable sanitizer_coverage_trace_pc_guard.cpp etc. on SPARC
When enabling ASan testing on SPARC as per PR llvm#107405, two tests `FAIL`: ``` SanitizerCommon-asan-sparc-SunOS :: sanitizer_coverage_trace_pc_guard-dso.cpp SanitizerCommon-asan-sparc-SunOS :: sanitizer_coverage_trace_pc_guard.cpp ``` The issue is the same in both cases: ``` WARNING: No coverage file for projects/compiler-rt/test/sanitizer_common/asan-sparc-SunOS/Output/sanitizer_coverage_trace_pc_guard.cpp.tmp WARNING: No coverage file for sanitizer_coverage_trace_pc_guard.cpp.tmp.22766.sancov ERROR: No valid coverage files given. ``` Checking the file with `sancov -print` reveals `Wrong magic: 4294967090`. There seems to be an endianess bug somewhere, since the tests are already disabled on other big-endian targets. This patch matches this. Tested on `sparcv9-sun-solaris2.11`.
1 parent b35bb7b commit 03f9c40

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard-dso.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Tests trace pc guard coverage collection.
22

33
// REQUIRES: has_sancovcc
4-
// UNSUPPORTED: ubsan,target={{(powerpc64|s390x|thumb).*}}
4+
// Doesn't work on big-endian targets.
5+
// UNSUPPORTED: ubsan,target={{(powerpc64|s390x|sparc|thumb).*}}
56
// XFAIL: tsan,darwin
67
// XFAIL: android && asan
78

compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Tests trace pc guard coverage collection.
22

33
// REQUIRES: has_sancovcc
4-
// UNSUPPORTED: ubsan,i386-darwin,target={{(powerpc64|s390x|thumb).*}}
4+
// UNSUPPORTED: ubsan,i386-darwin,target={{(powerpc64|s390x|sparc|thumb).*}}
55
// This test is failing for lsan on darwin on x86_64h.
66
// UNSUPPORTED: x86_64h-darwin && lsan
77
// XFAIL: tsan

0 commit comments

Comments
 (0)