[compiler-rt] a0ff8e8 - [ubsan][test] Unsupport function.cpp in Android armv7 on sanitizer-x86_64-linux-android

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun May 21 07:33:15 PDT 2023


Author: Fangrui Song
Date: 2023-05-21T07:33:11-07:00
New Revision: a0ff8e8d58b2782164dc5c7456ea35e09255bf28

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

LOG: [ubsan][test] Unsupport function.cpp in Android armv7 on sanitizer-x86_64-linux-android

The emulated environment has a spurious failure that causes many other
tests to XFAIL. Unsupport it for now.

```
1: CANNOT LINK EXECUTABLE "/data/local/tmp/Output/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/ubsan/Standalone-arm/TestCases/TypeCheck/Function/Output/function.cpp.tmp": library "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/ubsan/Standalone-arm/TestCases/TypeCheck/Function/Output/function.cpp.tmp-so.so" not found: needed by main executable
```

Added: 
    

Modified: 
    compiler-rt/test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg.py b/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg.py
index 0b860f63caff0..48146f8c70783 100644
--- a/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg.py
+++ b/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg.py
@@ -1,2 +1,5 @@
 if config.host_os not in ['Darwin', 'FreeBSD', 'Linux', 'NetBSD']:
   config.unsupported = True
+# Work around "library ... not found: needed by main executable" in qemu.
+if config.android and config.target_arch == 'arm':
+  config.unsupported = True


        


More information about the llvm-commits mailing list