libsync: tests: redefine PollOnDestroyedTimeline() am: 801492b8a6

am: 7b98240813

Change-Id: I21e0e3f2fbd6d87a7b654b9415cd4694bac60b0c
This commit is contained in:
Gustavo Padovan 2017-01-19 00:44:24 +00:00 committed by android-build-merger
commit 6a33f58ae8
1 changed files with 1 additions and 2 deletions

View File

@ -364,8 +364,7 @@ TEST(FenceTest, PollOnDestroyedTimeline) {
struct pollfd fds;
fds.fd = fenceKill.getFd();
fds.events = POLLIN | POLLERR;
ASSERT_EQ(poll(&fds, 1, -1), 1);
ASSERT_TRUE(fds.revents & POLLERR);
ASSERT_EQ(poll(&fds, 1, 0), 0);
}
};