From 293d5132d0a48a699efa6b1675eb3e2f73dd04da Mon Sep 17 00:00:00 2001 From: Lazar Trsic Date: Mon, 15 Aug 2016 15:58:42 +0200 Subject: [PATCH] [MIPS] Fix bionic test build Group of libtest_invalid* libraries does not exists for mips architecture, so disable relevant tests. Change-Id: I3a4fef94933eb33654c4274aa249ea5d61d6cf9b --- tests/Android.build.prebuilt.mk | 2 ++ tests/dlfcn_test.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Android.build.prebuilt.mk b/tests/Android.build.prebuilt.mk index 2d1255744..09c2366e4 100644 --- a/tests/Android.build.prebuilt.mk +++ b/tests/Android.build.prebuilt.mk @@ -21,6 +21,8 @@ LOCAL_MODULE_PATH_32 := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TE LOCAL_MODULE_PATH_64 := $(TARGET_OUT_DATA_NATIVE_TESTS)/prebuilt-elf-files LOCAL_MODULE_CLASS := EXECUTABLES +LOCAL_MODULE_TARGET_ARCH := arm arm64 x86 x86_64 + LOCAL_SRC_FILES_arm := prebuilt-elf-files/arm/$(bionic_tests_module) LOCAL_SRC_FILES_arm64 := prebuilt-elf-files/arm64/$(bionic_tests_module) LOCAL_SRC_FILES_x86 := prebuilt-elf-files/x86/$(bionic_tests_module) diff --git a/tests/dlfcn_test.cpp b/tests/dlfcn_test.cpp index c33bd3ab1..549cebbbf 100644 --- a/tests/dlfcn_test.cpp +++ b/tests/dlfcn_test.cpp @@ -1144,7 +1144,7 @@ TEST(dlfcn, dt_runpath_absolute_path) { } // Bionic specific tests -#if defined(__BIONIC__) +#if defined(__BIONIC__) && !defined(__mips__) #if defined(__LP64__) #define NATIVE_TESTS_PATH "/nativetest64"