Skip to content

Commit e3e83b1

Browse files
committed
[ASan][test] XFAIL global-overflow.cpp etc. on SPARC
When enabling ASan testing on SPARC as per PR llvm#107405, two tests `FAIL` in similar ways as detailed in Issue llvm#108194: at `-O1` and above, one line of the stacktrace lacks the line number info, causing the tests to `FAIL`. I could trace this to `clang` generating incomplete line number info; `g++` gets this right. To avoid this, this patch `XFAIL`s the affected tests on SPARC. Tested on `sparcv9-sun-solaris2.11`.
1 parent b35bb7b commit e3e83b1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

compiler-rt/test/asan/TestCases/global-overflow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s
44
// RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s
55

6+
// Issue #108194: Incomplete .debug_line at -O1 and above.
7+
// XFAIL: target={{.*sparc.*}}
8+
69
#include <string.h>
710
int main(int argc, char **argv) {
811
static char XXX[10];

compiler-rt/test/asan/TestCases/large_func_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
55
// REQUIRES: stable-runtime
66

7+
// Issue #108194: Incomplete .debug_line at -O1 and above.
8+
// XFAIL: target={{.*sparc.*}}
9+
710
#include <stdlib.h>
811
__attribute__((noinline))
912
static void LargeFunction(int *x, int zero) {

0 commit comments

Comments
 (0)