diff options
author | Xiao Yang <yangx.jy@fujitsu.com> | 2024-01-21 19:39:46 +0800 |
---|---|---|
committer | Xiao Yang <yangx.jy@fujitsu.com> | 2024-01-29 00:08:36 +0800 |
commit | 60079e5e1978870ca7c16b65567dd1d90b317bbc (patch) | |
tree | ac6b3288a359194a828c4123a7832b85eea944a0 | |
parent | 746b6db3621217bdb6198926a5f1c58a6b25a365 (diff) | |
download | ltp-60079e5e1978870ca7c16b65567dd1d90b317bbc.tar.gz |
syscalls/preadv: Fix docparse
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
-rw-r--r-- | testcases/kernel/syscalls/preadv/preadv01.c | 16 | ||||
-rw-r--r-- | testcases/kernel/syscalls/preadv/preadv02.c | 35 | ||||
-rw-r--r-- | testcases/kernel/syscalls/preadv/preadv03.c | 6 |
3 files changed, 24 insertions, 33 deletions
diff --git a/testcases/kernel/syscalls/preadv/preadv01.c b/testcases/kernel/syscalls/preadv/preadv01.c index 62f9296f2..10604200d 100644 --- a/testcases/kernel/syscalls/preadv/preadv01.c +++ b/testcases/kernel/syscalls/preadv/preadv01.c @@ -4,14 +4,14 @@ * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> */ -/* -* Test Name: preadv01 -* -* Test Description: -* Testcase to check the basic functionality of the preadv(2). -* Preadv(2) should succeed to read the expected content of data -* and after reading the file, the file offset is not changed. -*/ +/*\ + * [Description] + * + * Testcase to check the basic functionality of the preadv(2). + * + * Preadv(2) should succeed to read the expected content of data + * and after reading the file, the file offset is not changed. + */ #define _GNU_SOURCE diff --git a/testcases/kernel/syscalls/preadv/preadv02.c b/testcases/kernel/syscalls/preadv/preadv02.c index 500059e42..bfcf5052b 100644 --- a/testcases/kernel/syscalls/preadv/preadv02.c +++ b/testcases/kernel/syscalls/preadv/preadv02.c @@ -4,29 +4,18 @@ * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> */ -/* -* Test Name: preadv02 -* -* Description: -* 1) preadv(2) fails if iov_len is invalid. -* 2) preadv(2) fails if the vector count iovcnt is less than zero. -* 3) preadv(2) fails if offset is negative. -* 4) preadv(2) fails when attempts to read into a invalid address. -* 5) preadv(2) fails if file descriptor is invalid. -* 6) preadv(2) fails if file descriptor is not open for reading. -* 7) preadv(2) fails when fd refers to a directory. -* 8) preadv(2) fails if fd is associated with a pipe. -* -* Expected Result: -* 1) preadv(2) should return -1 and set errno to EINVAL. -* 2) preadv(2) should return -1 and set errno to EINVAL. -* 3) preadv(2) should return -1 and set errno to EINVAL. -* 4) preadv(2) should return -1 and set errno to EFAULT. -* 5) preadv(2) should return -1 and set errno to EBADF. -* 6) preadv(2) should return -1 and set errno to EBADF. -* 7) preadv(2) should return -1 and set errno to EISDIR. -* 8) preadv(2) should return -1 and set errno to ESPIPE. -*/ +/*\ + * [Description] + * + * - EINVAL when iov_len is invalid. + * - EINVAL when the vector count iovcnt is less than zero. + * - EINVAL when offset is negative. + * - EFAULT when attempts to read into a invalid address. + * - EBADF when file descriptor is invalid. + * - EBADF when file descriptor is not open for reading. + * - EISDIR when fd refers to a directory. + * - ESPIPE when fd is associated with a pipe. + */ #define _GNU_SOURCE diff --git a/testcases/kernel/syscalls/preadv/preadv03.c b/testcases/kernel/syscalls/preadv/preadv03.c index d4595dda6..5d2946bc3 100644 --- a/testcases/kernel/syscalls/preadv/preadv03.c +++ b/testcases/kernel/syscalls/preadv/preadv03.c @@ -4,10 +4,12 @@ * Author: Xiao Yang <yangx.jy@cn.fujitsu.com> */ -/* - * Description: +/*\ + * [Description] + * * Check the basic functionality of the preadv(2) for the file * opened with O_DIRECT in all filesystem. + * * preadv(2) should succeed to read the expected content of data * and after reading the file, the file offset is not changed. */ |