[compiler-rt] ad81dea - [compiler-rt][asan] Disable two tests on Arm Thumb

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 28 03:34:44 PDT 2021


Author: David Spickett
Date: 2021-06-28T10:34:37Z
New Revision: ad81dea9f66db61eed1229cd7e62babb6d381257

URL: https://github.com/llvm/llvm-project/commit/ad81dea9f66db61eed1229cd7e62babb6d381257
DIFF: https://github.com/llvm/llvm-project/commit/ad81dea9f66db61eed1229cd7e62babb6d381257.diff

LOG: [compiler-rt][asan] Disable two tests on Arm Thumb

I can't be sure of the cause but I believe these fail
due to to fast unwinding not working on Thumb.

Whatever the case, they have been failing on our bots
for a long time:
https://lab.llvm.org/buildbot/#/builders/170/builds/46

Require fast-unwinder-works for both.

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp
    compiler-rt/test/asan/TestCases/Linux/recvfrom.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp b/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp
index 1a9b39f89b522..478568cd122c2 100644
--- a/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp
+++ b/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp
@@ -43,6 +43,8 @@
 // GNU driver doesn't handle .so files properly.
 // REQUIRES: Clang
 
+// REQUIRES: fast-unwinder-works
+
 #ifndef SZ
 # define SZ 4
 #endif

diff  --git a/compiler-rt/test/asan/TestCases/Linux/recvfrom.cpp b/compiler-rt/test/asan/TestCases/Linux/recvfrom.cpp
index 46aa202c2ad86..11ac93cda11d1 100644
--- a/compiler-rt/test/asan/TestCases/Linux/recvfrom.cpp
+++ b/compiler-rt/test/asan/TestCases/Linux/recvfrom.cpp
@@ -4,7 +4,8 @@
 // RUN: %clangxx_asan %s -DSENDTO -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-SENDTO
 // RUN: %clangxx_asan %s -DSENDTO -o %t && %env_asan_opts=intercept_send=0 %run %t 2>&1
 //
-// UNSUPPORTED: android
+// This will try to fast unwind on Arm Thumb, where fast unwinding does not work.
+// UNSUPPORTED: android, !fast-unwinder-works
 
 #include <stdio.h>
 #include <unistd.h>


        


More information about the llvm-commits mailing list