Skip to content

Commit cc1ac88

Browse files
Richard Palethorpemetan-ucw
authored andcommitted
io_setup01: Handle no AIO support in kernel
Signed-off-by: Richard Palethorpe <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 8e66e5d commit cc1ac88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testcases/kernel/syscalls/io_setup/io_setup01.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ static void verify_success(unsigned int nr, io_context_t *ctx, int init_val)
5353
memset(ctx, init_val, sizeof(*ctx));
5454

5555
TEST(io_setup(nr, ctx));
56+
if (TST_RET == -ENOSYS)
57+
tst_brk(TCONF | TRERRNO, "io_setup(): AIO not supported by kernel");
5658
if (TST_RET != 0) {
5759
tst_res(TFAIL, "io_setup() failed unexpectedly with %li (%s)",
5860
TST_RET, tst_strerrno(-TST_RET));

0 commit comments

Comments
 (0)