summaryrefslogtreecommitdiffstats
path: root/libutils/tests/Android.mk
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-08-28 12:59:48 +0100
committerThe Android Automerger <android-build@google.com>2015-09-28 17:08:35 -0700
commit6b667fddeb871338ac7b42d2a005f3d933004e15 (patch)
tree956db0c13d966667726bafcda1e7c6ccc5abcf45 /libutils/tests/Android.mk
parentbb0c180e62703c2068a1b2c9f8ba6d634bf1553c (diff)
downloadsystem_core-6b667fddeb871338ac7b42d2a005f3d933004e15.zip
system_core-6b667fddeb871338ac7b42d2a005f3d933004e15.tar.gz
system_core-6b667fddeb871338ac7b42d2a005f3d933004e15.tar.bz2
libutils: Fix integer overflows in VectorImpl.
Use external/safe-iop to check for overflows on arithmetic operations. Also remove an unnecessary copy of Vector/SharedBuffer from codeflinger and use the copy from libutils instead. Note that some of the unit tests are somewhat useless due to test-runner limitations : gtest's ability to filter on abort message doesn't work when combined with messages formatted by android's logging system. bug: 22953624 Change-Id: I46b1ae8ca1f3a010be13aca36a091e76a97a7b70
Diffstat (limited to 'libutils/tests/Android.mk')
-rw-r--r--libutils/tests/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/libutils/tests/Android.mk b/libutils/tests/Android.mk
index 7cfad89..d4a45fd 100644
--- a/libutils/tests/Android.mk
+++ b/libutils/tests/Android.mk
@@ -38,3 +38,11 @@ LOCAL_SHARED_LIBRARIES := \
libutils \
include $(BUILD_NATIVE_TEST)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libutils_tests_host
+LOCAL_SRC_FILES := Vector_test.cpp
+LOCAL_STATIC_LIBRARIES := libutils liblog
+
+include $(BUILD_HOST_NATIVE_TEST)