diff options
author | Serban Constantinescu <serban.constantinescu@arm.com> | 2014-06-10 14:50:16 +0100 |
---|---|---|
committer | Serban Constantinescu <serban.constantinescu@arm.com> | 2014-06-10 17:51:10 +0100 |
commit | 2aca7fe8214d9b4f421499a6f07579c888313649 (patch) | |
tree | 531b7f413c11b3441719b461b5260422f08bb1ed | |
parent | 2b8246fa755cf3e2828d702b6c27c2d238395fad (diff) | |
download | bionic-2aca7fe8214d9b4f421499a6f07579c888313649.zip bionic-2aca7fe8214d9b4f421499a6f07579c888313649.tar.gz bionic-2aca7fe8214d9b4f421499a6f07579c888313649.tar.bz2 |
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 <serban.constantinescu@arm.com>
-rw-r--r-- | tests/string_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string_test.cpp b/tests/string_test.cpp index c62f43b..67b3860 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -812,7 +812,7 @@ TEST(string, __memcmp16) { int expected = (static_cast<unsigned short>(c1) - static_cast<unsigned short>(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__ |