summaryrefslogtreecommitdiff
path: root/tests/malloc_test.cpp
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2019-02-06 22:04:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-02-06 22:04:09 +0000
commitf827d82cdde0fe7f11015fb5ead39bac861ab6bd (patch)
treea322a9f7b880e20144916208388ed2540fd60c9e /tests/malloc_test.cpp
parent73ee7a6320024c8f390d954a01b7a067c919bfc4 (diff)
parent7cc670637005e88e00be467c6c387112644a9209 (diff)
Merge "Cleanup bionic tests with hwasan."
Diffstat (limited to 'tests/malloc_test.cpp')
-rw-r--r--tests/malloc_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/malloc_test.cpp b/tests/malloc_test.cpp
index 25066915f..a3fe5af33 100644
--- a/tests/malloc_test.cpp
+++ b/tests/malloc_test.cpp
@@ -515,6 +515,7 @@ TEST(malloc, mallopt_smoke) {
TEST(malloc, mallopt_decay) {
#if defined(__BIONIC__)
+ SKIP_WITH_HWASAN; // hwasan does not implement mallopt
errno = 0;
ASSERT_EQ(1, mallopt(M_DECAY_TIME, 1));
ASSERT_EQ(1, mallopt(M_DECAY_TIME, 0));
@@ -527,6 +528,7 @@ TEST(malloc, mallopt_decay) {
TEST(malloc, mallopt_purge) {
#if defined(__BIONIC__)
+ SKIP_WITH_HWASAN; // hwasan does not implement mallopt
errno = 0;
ASSERT_EQ(1, mallopt(M_PURGE, 0));
#else
@@ -564,6 +566,7 @@ TEST(malloc, reallocarray) {
TEST(malloc, mallinfo) {
#if defined(__BIONIC__)
+ SKIP_WITH_HWASAN; // hwasan does not implement mallinfo
static size_t sizes[] = {
8, 32, 128, 4096, 32768, 131072, 1024000, 10240000, 20480000, 300000000
};