libsync: tests: redefine PollOnDestroyedTimeline()

am: 801492b8a6

Change-Id: I1e75acee45764fa6a3c246edfad544a682fa20bd
This commit is contained in:
Gustavo Padovan 2017-01-19 00:42:20 +00:00 committed by android-build-merger
commit 7b98240813
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);
}
};