diff options
author | Elliott Hughes <enh@google.com> | 2019-03-08 15:20:23 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2019-03-12 10:26:39 -0700 |
commit | bcaa454d32e1b4ccf92467bb263d627695ac9a5b (patch) | |
tree | 65d7d4c493242ecb51bfe1796f133b32538de514 /tests/malloc_iterate_test.cpp | |
parent | ff16c0b89b7297bc70353f60afac9bb93d6b0087 (diff) |
bionic tests: use GTEST_SKIP.
Also be a bit more to the point in our messages, focusing on "why" not
"what".
Test: ran tests
Change-Id: I297806c7a102bd52602dcd2fcf7a2cd34aba3a11
Diffstat (limited to 'tests/malloc_iterate_test.cpp')
-rw-r--r-- | tests/malloc_iterate_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/malloc_iterate_test.cpp b/tests/malloc_iterate_test.cpp index 76583ebb5..9d4fe040a 100644 --- a/tests/malloc_iterate_test.cpp +++ b/tests/malloc_iterate_test.cpp @@ -150,7 +150,7 @@ TEST(malloc_iterate, small_allocs) { FreePtrs(&test_data); #else - GTEST_LOG_(INFO) << "Skipping, this is a bionic only test."; + GTEST_SKIP() << "bionic-only test"; #endif } @@ -169,7 +169,7 @@ TEST(malloc_iterate, large_allocs) { FreePtrs(&test_data); #else - GTEST_LOG_(INFO) << "Skipping, this is a bionic only test."; + GTEST_SKIP() << "bionic-only test"; #endif } @@ -193,7 +193,7 @@ TEST(malloc_iterate, invalid_pointers) { ASSERT_EQ(0UL, test_data.total_allocated_bytes); #else - GTEST_LOG_(INFO) << "Skipping, this is a bionic only test."; + GTEST_SKIP() << "bionic-only test"; #endif } @@ -222,6 +222,6 @@ TEST(malloc_iterate, malloc_disable_prevents_allocs) { ASSERT_NE(-1, wait_pid) << "Unknown failure in waitpid."; ASSERT_EQ(0, wait_pid) << "malloc_disable did not prevent allocation calls."; #else - GTEST_LOG_(INFO) << "Skipping, this is a bionic only test."; + GTEST_SKIP() << "bionic-only test"; #endif } |