[LTP] [PATCH v2] capset02: Fix the doc to fit RST format

Ma Xinjian maxj.fnst@fujitsu.com
Thu Feb 20 09:50:49 CET 2025


Fix the indent and change to bullet point lists.

Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
 testcases/kernel/syscalls/capset/capset02.c | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/testcases/kernel/syscalls/capset/capset02.c b/testcases/kernel/syscalls/capset/capset02.c
index 36d799663..f9d4d860b 100644
--- a/testcases/kernel/syscalls/capset/capset02.c
+++ b/testcases/kernel/syscalls/capset/capset02.c
@@ -6,20 +6,15 @@
  */
 
 /*\
- * Tests basic error handling of the capset syscall.
+ * Verify that, capset(2) fails and sets errno to
  *
- * 1. capset() fails with errno set to EFAULT if an invalid address
- * is given for header.
- * 2. capset() fails with errno set to EFAULT if an invalid address
- * is given for data.
- * 3. capset() fails with errno set to EINVAL if an invalid value
- * is given for header->version.
- * 4. capset() fails with errno set to EPERM if the new_Effective is
- * not a subset of the new_Permitted.
- * 5. capset() fails with errno set to EPERM if the new_Permitted is
- * not a subset of the old_Permitted.
- * 6. capset() fails with errno set ot EPERM if the new_Inheritable is
- * not a subset of  the old_Inheritable and bounding set.
+ * - EFAULT if an invalid address is given for header.
+ * - EFAULT if an invalid address is given for data.
+ * - EINVAL if an invalid value is given for header->version.
+ * - EPERM if the new_Effective is not a subset of the new_Permitted.
+ * - EPERM if the new_Permitted is not a subset of the old_Permitted.
+ * - EPERM if the new_Inheritable is not a subset of the
+ *   old_Inheritable and bounding set.
  */
 
 #include <stdlib.h>
-- 
2.47.0



More information about the ltp mailing list