Lines Matching refs:nr_fds
32 int nr_fds, expected_fd[2], fd, err = TEST_FAIL; in test__fdarray__filter() local
41 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
42 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter()
44 nr_fds, fda->nr_alloc); in test__fdarray__filter()
49 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
50 if (nr_fds != 0) { in test__fdarray__filter()
52 nr_fds, fda->nr_alloc); in test__fdarray__filter()
62 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
64 if (nr_fds != 1) { in test__fdarray__filter()
65 pr_debug("\nfdarray__filter()=%d != 1, should have left just one event", nr_fds); in test__fdarray__filter()
83 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
85 if (nr_fds != 2) { in test__fdarray__filter()
87 nr_fds); in test__fdarray__filter()