summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-06-10 18:25:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-10 18:25:40 +0000
commitbdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f (patch)
tree531b7f413c11b3441719b461b5260422f08bb1ed
parent2b8246fa755cf3e2828d702b6c27c2d238395fad (diff)
parent2aca7fe8214d9b4f421499a6f07579c888313649 (diff)
downloadbionic-bdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f.zip
bionic-bdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f.tar.gz
bionic-bdb8b21d0547dd74c62af3ddc9b8e7670adcbe9f.tar.bz2
Merge "AArch64: Fix memcmp16() test"
-rw-r--r--tests/string_test.cpp2
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__