[LTP] [PATCH] nanosleep04: Convert docs to docparse

Ma Xinjian maxj.fnst@fujitsu.com
Mon Dec 16 07:38:25 CET 2024


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

diff --git a/testcases/kernel/syscalls/nanosleep/nanosleep04.c b/testcases/kernel/syscalls/nanosleep/nanosleep04.c
index 4eed9d0ce..3582a3fb2 100644
--- a/testcases/kernel/syscalls/nanosleep/nanosleep04.c
+++ b/testcases/kernel/syscalls/nanosleep/nanosleep04.c
@@ -7,13 +7,11 @@
  * 07/2019    Yang Xu <xuyang2018.jy@cn.fujitsu.com>
  */
 
-/*
- * Test Description:
- *  Verify that nanosleep() will fail to suspend the execution
- *  of a process if the specified pause time is invalid.
+/*\
+ * [Description]
  *
- * Expected Result:
- *  nanosleep() should return with -1 value and sets errno to EINVAL.
+ * Verify that nanosleep() returns -1 and sets errno to EINVAL when failing to suspend the
+ * execution of a process if the specified pause time is invalid.
  */
 
 #include <errno.h>
-- 
2.47.0



More information about the ltp mailing list