diff options
author | 2016-11-30 13:41:53 -0800 | |
---|---|---|
committer | 2016-11-30 13:41:53 -0800 | |
commit | 36b3135929cf1561d35039fc9e04e038f5351ed7 (patch) | |
tree | b20b4f6ab4043fae9a170adb711b488be0bd1a59 /test/core/iomgr | |
parent | 0f97958b64a792e551aa3bde84bb8f53b04de3b4 (diff) | |
parent | 369ddc524a6ca55afb8e8bd6743ed5624e1a94ce (diff) |
Merge branch 'slice_interning' into metadata_filter
Diffstat (limited to 'test/core/iomgr')
-rw-r--r-- | test/core/iomgr/wakeup_fd_cv_test.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/core/iomgr/wakeup_fd_cv_test.c b/test/core/iomgr/wakeup_fd_cv_test.c index 82452d2157..04ae9376dd 100644 --- a/test/core/iomgr/wakeup_fd_cv_test.c +++ b/test/core/iomgr/wakeup_fd_cv_test.c @@ -195,16 +195,15 @@ void test_poll_cv_trigger(void) { GPR_ASSERT(pfds[4].revents == 0); GPR_ASSERT(pfds[5].revents == 0); - // Pollin on wakeup fd + socket fd - trigger_socket_event(); + // Pollin on wakeupfd before poll() pargs.result = -2; gpr_thd_new(&t_id, &background_poll, &pargs, &opt); gpr_thd_join(t_id); - GPR_ASSERT(pargs.result == 2); + GPR_ASSERT(pargs.result == 1); GPR_ASSERT(pfds[0].revents == 0); GPR_ASSERT(pfds[1].revents == POLLIN); - GPR_ASSERT(pfds[2].revents == POLLIN); + GPR_ASSERT(pfds[2].revents == 0); GPR_ASSERT(pfds[3].revents == 0); GPR_ASSERT(pfds[4].revents == 0); GPR_ASSERT(pfds[5].revents == 0); |