[compiler-rt] r350444 - Disable system-allocator-fallback.cc test on Android O and earlier.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 4 15:10:47 PST 2019
Author: pcc
Date: Fri Jan 4 15:10:47 2019
New Revision: 350444
URL: http://llvm.org/viewvc/llvm-project?rev=350444&view=rev
Log:
Disable system-allocator-fallback.cc test on Android O and earlier.
The dynamic loader on Android O appears to have a bug where it crashes
when dlopening DF_1_GLOBAL libraries.
Modified:
compiler-rt/trunk/test/hwasan/TestCases/Posix/system-allocator-fallback.cc
compiler-rt/trunk/test/lit.common.cfg
Modified: compiler-rt/trunk/test/hwasan/TestCases/Posix/system-allocator-fallback.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/hwasan/TestCases/Posix/system-allocator-fallback.cc?rev=350444&r1=350443&r2=350444&view=diff
==============================================================================
--- compiler-rt/trunk/test/hwasan/TestCases/Posix/system-allocator-fallback.cc (original)
+++ compiler-rt/trunk/test/hwasan/TestCases/Posix/system-allocator-fallback.cc Fri Jan 4 15:10:47 2019
@@ -2,6 +2,10 @@
// RUN: %clangxx_hwasan -shared %s -o %t.so -DSHARED_LIB -shared-libsan -Wl,-rpath,%compiler_rt_libdir
// RUN: %env_hwasan_opts=disable_allocator_tagging=0 %run %t
+// The dynamic loader on Android O appears to have a bug where it crashes when
+// dlopening DF_1_GLOBAL libraries.
+// REQUIRES: android-28
+
#include <stddef.h>
// Test that allocations made by the system allocator can be realloc'd and freed
Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=350444&r1=350443&r2=350444&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Fri Jan 4 15:10:47 2019
@@ -286,6 +286,8 @@ if config.android:
lit_config.fatal("Failed to read ro.build.version.sdk (using '%s' as adb): got '%s'" % (adb, android_api_level_str))
if android_api_level >= 26:
config.available_features.add('android-26')
+ if android_api_level >= 28:
+ config.available_features.add('android-28')
sancovcc_path = os.path.join(config.llvm_tools_dir, "sancov")
if os.path.exists(sancovcc_path):
More information about the llvm-commits
mailing list