* [LTP] [PATCH] io_submit01: Handle missing AIO support
@ 2020-09-29 14:50 Richard Palethorpe
2020-09-29 17:55 ` Petr Vorel
0 siblings, 1 reply; 2+ messages in thread
From: Richard Palethorpe @ 2020-09-29 14:50 UTC (permalink / raw)
To: ltp
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
testcases/kernel/syscalls/io_submit/io_submit01.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/testcases/kernel/syscalls/io_submit/io_submit01.c b/testcases/kernel/syscalls/io_submit/io_submit01.c
index afa077c59..bbbbc9101 100644
--- a/testcases/kernel/syscalls/io_submit/io_submit01.c
+++ b/testcases/kernel/syscalls/io_submit/io_submit01.c
@@ -66,11 +66,11 @@ static struct tcase {
static void setup(void)
{
- int rval;
-
- rval = io_setup(1, &ctx);
- if (rval)
- tst_brk(TBROK | TERRNO, "io_setup() returned %d", rval);
+ TEST(io_setup(1, &ctx));
+ if (TST_RET == -ENOSYS)
+ tst_brk(TCONF | TRERRNO, "io_setup(): AIO not supported by kernel");
+ else if (TST_RET)
+ tst_brk(TBROK | TRERRNO, "io_setup() failed");
io_prep_pread(&inv_fd_iocb, -1, buf, sizeof(buf), 0);
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] io_submit01: Handle missing AIO support
2020-09-29 14:50 [LTP] [PATCH] io_submit01: Handle missing AIO support Richard Palethorpe
@ 2020-09-29 17:55 ` Petr Vorel
0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2020-09-29 17:55 UTC (permalink / raw)
To: ltp
Hi Richard,
thanks, merged!
Kind regards,
Petr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-29 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-29 14:50 [LTP] [PATCH] io_submit01: Handle missing AIO support Richard Palethorpe
2020-09-29 17:55 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox