[PATCH liburing 3/4] tests: fix timeout-new for old kernels

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

 



Users report timeout-new fails. Don't return an error for older kernels
not supporting IORING_FEAT_EXT_ARG, just skip it.

Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx>
---
 test/timeout-new.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/timeout-new.c b/test/timeout-new.c
index 45b9a14..b0bb5ee 100644
--- a/test/timeout-new.c
+++ b/test/timeout-new.c
@@ -203,7 +203,7 @@ int main(int argc, char *argv[])
 	}
 	if (!(ring_normal.features & IORING_FEAT_EXT_ARG)) {
 		fprintf(stderr, "feature IORING_FEAT_EXT_ARG not supported.\n");
-		return 1;
+		return 0;
 	}
 
 	ret = test_return_before_timeout(&ring_normal);
-- 
2.31.1




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux