Skip to content

Commit 502f4db

Browse files
Richard Palethorpemetan-ucw
authored andcommitted
eventfd01: Handle no AIO support
Signed-off-by: Richard Palethorpe <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 797a0e7 commit 502f4db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testcases/kernel/syscalls/eventfd/eventfd01.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,11 @@ static int trigger_eventfd_overflow(int evfd, int *fd, io_context_t * ctx)
510510
ret = io_setup(16, ctx);
511511
if (ret < 0) {
512512
errno = -ret;
513+
if (errno == ENOSYS) {
514+
tst_brkm(TCONF | TERRNO, cleanup,
515+
"io_setup(): AIO not supported by kernel");
516+
}
517+
513518
tst_resm(TINFO | TERRNO, "io_setup error");
514519
return -1;
515520
}

0 commit comments

Comments
 (0)