Closed mathslimin closed 1 year ago
EOPNOTSUPP
should endup as TCONF
=> trivial fix.
Test on latest upstream, the test result is good, so could we close this issue? /home/ltp/testcases/kernel/syscalls/io_uring # ./io_uring02 tst_test.c:1558: TINFO: Timeout per run is 0h 00m 30s io_uring02.c:192: TINFO: IOSQE_ASYNC is supported io_uring02.c:205: TPASS: Write outside chroot failed as expected: ENOENT (2)
Summary: passed 1 failed 0 broken 0 skipped 0 warnings 0
@coolgw not really, the test should be fixed to be able to handle EOPNOTSUPP from the io_uring().
@coolgw safe_io_uring_init()
is the right place to add check for errno == EOPNOTSUPP
and quit with TCONF
instead of TBROK
(see the meaning in https://github.com/linux-test-project/ltp/wiki/C-Test-API#12-basic-test-interface).
Thanks @metan-ucw @pevik , i will have a look on it.
patch email done.
tst_test.c:1526: TINFO: Timeout per run is 0h 02m 30s io_uring02.c:213: TBROK: io_uring_setup() failed: EOPNOTSUPP (95)
Summary: passed 0 failed 0 broken 1 skipped 0 warnings 0