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:
commit
9f375bbb49
1 changed files with 3 additions and 1 deletions
|
@ -1652,6 +1652,8 @@ TEST(UNISTD_TEST, sleep) {
|
|||
TEST(UNISTD_TEST, close_range) {
|
||||
#if defined(__GLIBC__)
|
||||
GTEST_SKIP() << "glibc too old";
|
||||
#elif defined(ANDROID_HOST_MUSL)
|
||||
GTEST_SKIP() << "musl does not have close_range";
|
||||
#else // __GLIBC__
|
||||
int fd = open("/proc/version", O_RDONLY);
|
||||
ASSERT_GE(fd, 0);
|
||||
|
@ -1683,4 +1685,4 @@ TEST(UNISTD_TEST, copy_file_range) {
|
|||
ASSERT_TRUE(android::base::ReadFdToString(tf2.fd, &content));
|
||||
ASSERT_EQ("hello world", content);
|
||||
#endif // __GLIBC__
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue