Merge "Disable close_range test for musl" am: 98edc0c14e

Original change: https://android-review.googlesource.com/c/platform/bionic/+/2103348

Change-Id: I6e073eb23709d8c8266e72f32ac5d4abe68bb911
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Colin Cross 2022-05-24 15:28:23 +00:00 committed by Automerger Merge Worker
commit 9f375bbb49

View file

@ -1652,6 +1652,8 @@ TEST(UNISTD_TEST, sleep) {
TEST(UNISTD_TEST, close_range) { TEST(UNISTD_TEST, close_range) {
#if defined(__GLIBC__) #if defined(__GLIBC__)
GTEST_SKIP() << "glibc too old"; GTEST_SKIP() << "glibc too old";
#elif defined(ANDROID_HOST_MUSL)
GTEST_SKIP() << "musl does not have close_range";
#else // __GLIBC__ #else // __GLIBC__
int fd = open("/proc/version", O_RDONLY); int fd = open("/proc/version", O_RDONLY);
ASSERT_GE(fd, 0); ASSERT_GE(fd, 0);
@ -1683,4 +1685,4 @@ TEST(UNISTD_TEST, copy_file_range) {
ASSERT_TRUE(android::base::ReadFdToString(tf2.fd, &content)); ASSERT_TRUE(android::base::ReadFdToString(tf2.fd, &content));
ASSERT_EQ("hello world", content); ASSERT_EQ("hello world", content);
#endif // __GLIBC__ #endif // __GLIBC__
} }