libsync: tests: redefine PollOnDestroyedTimeline() am: 801492b8a6 am: 7b98240813
am: 6a33f58ae8
Change-Id: I92f591e0e23a0d65241bf05efd6ab0297ef43ed4
diff --git a/libsync/tests/sync_test.cpp b/libsync/tests/sync_test.cpp
index 7c65756..ff8a300 100644
--- a/libsync/tests/sync_test.cpp
+++ b/libsync/tests/sync_test.cpp
@@ -364,8 +364,7 @@
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);
}
};