[LTP] [PATCH v3] io_submit04: Add test case for RWF_NOWAIT flag

Andrea Cervesato andrea.cervesato@suse.com
Tue Jan 6 09:39:19 CET 2026


Hi!

> > We return because if io_submit() fails there's nothing to do more.
> tst_res(TBROK will trigger error such as :
> make[1]: Leaving directory '/home/wegao/ltp/lib'
> In file included from ../../../../include/tst_test.h:20,
>                  from io_submit04.c:14:
> io_submit04.c: In function ‘run’:
> ../../../../include/tst_common.h:80:32: error: size of unnamed array is negative
>    80 |         do { ((void)sizeof(char[1 - 2 * !!(condition)])); } while (0)
>       |                                ^
> ../../../../include/tst_common.h:83:9: note: in expansion of macro ‘TST_BUILD_BUG_ON’
>    83 |         TST_BUILD_BUG_ON(condition)
>       |         ^~~~~~~~~~~~~~~~
> ../../../../include/tst_test.h:71:17: note: in expansion of macro ‘TST_RES_SUPPORTS_TCONF_TDEBUG_TFAIL_TINFO_TPASS_TWARN’
>    71 |                 TST_RES_SUPPORTS_TCONF_TDEBUG_TFAIL_TINFO_TPASS_TWARN(\
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> io_submit04.c:63:17: note: in expansion of macro ‘tst_res’
>    63 |                 tst_res(TBROK | TTERRNO, "io_submit() returns %ld, expected %ld",
>       |                 ^~~~~~~
> make: *** [../../../../include/mk/rules.mk:48: io_submit04] Error 1
> -bash: ./io_submit04: No such file or directory
>
> So i suppose we need use "tst_brk(TBROK" without return, correct?

Yes, sorry, christmas vacation is hitting :-)

-- 
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com



More information about the ltp mailing list