From 2aca7fe8214d9b4f421499a6f07579c888313649 Mon Sep 17 00:00:00 2001 From: Serban Constantinescu Date: Tue, 10 Jun 2014 14:50:16 +0100 Subject: [PATCH] AArch64: Fix memcmp16() test __memcmp16() should return an integer less than, equal to, or greater than zero. However the tests looks for a specific value. Change-Id: I06052f58f9ccc67146a3df9abb349c4bc19f090e Signed-off-by: Serban Constantinescu --- tests/string_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/string_test.cpp b/tests/string_test.cpp index c62f43bf6..67b3860d1 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -812,7 +812,7 @@ TEST(string, __memcmp16) { int expected = (static_cast(c1) - static_cast(c2)); int actual = __memcmp16(state.ptr1, state.ptr2, (size_t) state.MAX_LEN); - ASSERT_EQ(expected, actual); + ASSERT_EQ(signum(expected), signum(actual)); } } #else // __BIONIC__