diff options
author | Elliott Hughes <enh@google.com> | 2014-06-10 18:25:40 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-06-10 18:25:40 +0000 |
commit | bdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f (patch) | |
tree | 531b7f413c11b3441719b461b5260422f08bb1ed | |
parent | 2b8246fa755cf3e2828d702b6c27c2d238395fad (diff) | |
parent | 2aca7fe8214d9b4f421499a6f07579c888313649 (diff) | |
download | bionic-bdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f.zip bionic-bdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f.tar.gz bionic-bdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f.tar.bz2 |
Merge "AArch64: Fix memcmp16() test"
-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__ |