[PATCH] 22.t: fix check for POLLIN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux