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__