[compiler-rt] e03c350 - [sanitizer] Disable new test on Android to fix a bot

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 9 00:58:18 PDT 2022


Author: Vitaly Buka
Date: 2022-04-09T00:57:48-07:00
New Revision: e03c350eee8046dadd1ea2627181b518efb4d319

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

LOG: [sanitizer] Disable new test on Android to fix a bot

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
    compiler-rt/test/sanitizer_common/TestCases/Linux/b64.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index d46b41322ac7d..3cbbead4e98f7 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -235,7 +235,7 @@
 #define SANITIZER_INTERCEPT_TIME SI_POSIX
 #define SANITIZER_INTERCEPT_GLOB (SI_GLIBC || SI_SOLARIS)
 #define SANITIZER_INTERCEPT_GLOB64 SI_GLIBC
-#define SANITIZER_INTERCEPT___B64_TO SI_LINUX
+#define SANITIZER_INTERCEPT___B64_TO SI_LINUX_NOT_ANDROID
 #define SANITIZER_INTERCEPT_POSIX_SPAWN SI_POSIX
 #define SANITIZER_INTERCEPT_WAIT SI_POSIX
 #define SANITIZER_INTERCEPT_INET SI_POSIX

diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/b64.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/b64.cpp
index ae0867e98d1d9..99f27421642cb 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/b64.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/b64.cpp
@@ -1,5 +1,8 @@
 // RUN: %clangxx %s -o %t -lresolv && %run %t %p
 
+// -lresolv fails on Android.
+// UNSUPPORTED: android
+
 #include <assert.h>
 #include <resolv.h>
 #include <stdlib.h>


        


More information about the llvm-commits mailing list