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

Ma Xinjian maxj.fnst@fujitsu.com
Thu Feb 20 09:32:45 CET 2025


Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
 testcases/kernel/syscalls/getrlimit/getrlimit02.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/testcases/kernel/syscalls/getrlimit/getrlimit02.c b/testcases/kernel/syscalls/getrlimit/getrlimit02.c
index 20c247a0e..0d7c2bb32 100644
--- a/testcases/kernel/syscalls/getrlimit/getrlimit02.c
+++ b/testcases/kernel/syscalls/getrlimit/getrlimit02.c
@@ -5,13 +5,11 @@
  */
 
 /*\
- * Test for checking error conditions for getrlimit(2):
+ * Verify that, getrlimit(2) returns -1 and sets errno to 
  *
- * 1. getrlimit(2) returns -1 and sets errno to EFAULT if an invalid
- *	  address is given for address parameter.
- * 2. getrlimit(2) returns -1 and sets errno to EINVAL if an invalid
- *	  resource type (RLIM_NLIMITS is a out of range resource type) is
- *	  passed.
+ * - EFAULT if an invalid address is given for address parameter.
+ * - EINVAL if an invalid resource type (RLIM_NLIMITS is a out of
+ *   range resource type) is passed.
  */
 
 #include <sys/resource.h>
-- 
2.47.0



More information about the ltp mailing list