Recent kernels seem to also set POLLRDNORM in addition to POLLIN, so check by masking instead of equality. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- harness/cases/22.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harness/cases/22.t b/harness/cases/22.t index c7e7c0e..f376afc 100644 --- a/harness/cases/22.t +++ b/harness/cases/22.t @@ -139,7 +139,7 @@ int test_main(void) printf("parent: io_pgetevents reports wrong fd\n"); return 1; } - if (ev.res != POLLIN) { + if (!(ev.res & POLLIN)) { printf("parent: io_pgetevents did not report readable fd\n"); return 1; } -- 2.17.0