[LTP] [PATCH 3/3] syscalls/io_submit: Convert libaio wrapper function to kernel syscall

Cyril Hrubis chrubis@suse.cz
Thu May 6 15:58:56 CEST 2021


Hi!
> > If we should test _both_ syscall() and the library, I would prefer to split
> > libaio and native aio into two testcases in this testsuite, since <libaio.h>
> > conflicts with <linux/aio_abi.h> during actual modification.
> 
> > Excuse me, is there any other good way to solve this problem?
> NOTE: if most of the test the same, with little help of #ifdef and maybe 1-2
> macros we can have single source for both variants (compiling 2 binaries).
> See setdomainname and sethostname tests (setdomainname.h).

Not sure that it's that easy here, since we cannot include libaio.h and
aio_abi.h in a single file without getting conflicts, they define
structures with the same name with possibly different layout, which
makes this very tricky.

I guess that having separate tests for different interface would
probably be easiest solution in this case.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list