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/string_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/string_test.cpp')
-rw-r--r-- | tests/string_test.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/string_test.cpp b/tests/string_test.cpp index b27ca87d2..335d33bd6 100644 --- a/tests/string_test.cpp +++ b/tests/string_test.cpp @@ -85,7 +85,7 @@ TEST(STRING_TEST, strerror_concurrent) { ASSERT_STREQ("Unknown error 1001", strerror1001); #else // __BIONIC__ - GTEST_LOG_(INFO) << "Skipping test, requires a thread safe strerror."; + GTEST_SKIP() << "thread-safe strerror not available"; #endif // __BIONIC__ } @@ -578,7 +578,7 @@ TEST(STRING_TEST, strlcat) { } } #else - GTEST_LOG_(INFO) << "Skipping test, strlcat not supported on this platform."; + GTEST_SKIP() << "strlcat not available"; #endif } @@ -610,7 +610,7 @@ TEST(STRING_TEST, strlcpy) { (memcmp(state.ptr2, state.ptr + state.MAX_LEN, state.MAX_LEN) != 0)); } #else - GTEST_LOG_(INFO) << "Skipping test, strlcpy not supported on this platform."; + GTEST_SKIP() << "strlcpy not available"; #endif } @@ -1139,7 +1139,7 @@ TEST(STRING_TEST, strlcpy_align) { #if defined(STRLCPY_SUPPORTED) RunSrcDstBufferAlignTest(LARGE, DoStrlcpyTest); #else - GTEST_LOG_(INFO) << "Skipping test, strlcpy not supported on this platform."; + GTEST_SKIP() << "strlcpy not available"; #endif } @@ -1147,7 +1147,7 @@ TEST(STRING_TEST, strlcpy_overread) { #if defined(STRLCPY_SUPPORTED) RunSrcDstBufferOverreadTest(DoStrlcpyTest); #else - GTEST_LOG_(INFO) << "Skipping test, strlcpy not supported on this platform."; + GTEST_SKIP() << "strlcpy not available"; #endif } @@ -1275,7 +1275,7 @@ TEST(STRING_TEST, strlcat_align) { #if defined(STRLCAT_SUPPORTED) RunSrcDstBufferAlignTest(MEDIUM, DoStrlcatTest, LargeSetIncrement); #else - GTEST_LOG_(INFO) << "Skipping test, strlcat not supported on this platform."; + GTEST_SKIP() << "strlcat not available"; #endif } @@ -1283,7 +1283,7 @@ TEST(STRING_TEST, strlcat_overread) { #if defined(STRLCAT_SUPPORTED) RunSrcDstBufferOverreadTest(DoStrlcatTest); #else - GTEST_LOG_(INFO) << "Skipping test, strlcat not supported on this platform."; + GTEST_SKIP() << "strlcat not available"; #endif } |