Skip to content

Commit

Permalink
llistxattr02: Convert docs to docparse
Browse files Browse the repository at this point in the history
Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Wei Gao <[email protected]>
Reviewed-by: Petr Vorel <[email protected]>
Signed-off-by: Ma Xinjian <[email protected]>
  • Loading branch information
MaXinjian authored and pevik committed Nov 12, 2024
1 parent ff71c77 commit 865be36
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions testcases/kernel/syscalls/llistxattr/llistxattr02.c
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2016 Fujitsu Ltd.
* Author: Xiao Yang <[email protected]>
*/

/*
* Test Name: llistxattr02
*
* Description:
* 1) llistxattr(2) fails if the size of the list buffer is too small
* to hold the result.
* 2) llistxattr(2) fails if path is an empty string.
* 3) llistxattr(2) fails when attempted to read from a invalid address.
* 4) llistxattr(2) fails if path is longer than allowed.
*
* Expected Result:
* 1) llistxattr(2) should return -1 and set errno to ERANGE.
* 2) llistxattr(2) should return -1 and set errno to ENOENT.
* 3) llistxattr(2) should return -1 and set errno to EFAULT.
* 4) llistxattr(2) should return -1 and set errno to ENAMETOOLONG.
*/
* Copyright (c) 2016 Fujitsu Ltd.
* Author: Xiao Yang <[email protected]>
*/

/*\
* [Description]
*
* Verify llistxattr(2) returns -1 and set proper errno:
*
* - ERANGE if the size of the list buffer is too small to hold the result
* - ENOENT if path is an empty string
* - EFAULT when attempted to read from a invalid address
* - ENAMETOOLONG if path is longer than allowed
*/

#include "config.h"
#include <errno.h>
Expand Down

0 comments on commit 865be36

Please sign in to comment.