[LTP] [PATCH] nice01/02/03/04: docparse comment
Avinesh Kumar
akumar@suse.de
Thu Jul 14 17:24:55 CEST 2022
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
testcases/kernel/syscalls/nice/nice01.c | 10 ++++++----
testcases/kernel/syscalls/nice/nice02.c | 11 +++++++----
testcases/kernel/syscalls/nice/nice03.c | 11 +++++++----
testcases/kernel/syscalls/nice/nice04.c | 9 ++++++---
4 files changed, 26 insertions(+), 15 deletions(-)
diff --git a/testcases/kernel/syscalls/nice/nice01.c b/testcases/kernel/syscalls/nice/nice01.c
index aee5ea043..ee360bfbf 100644
--- a/testcases/kernel/syscalls/nice/nice01.c
+++ b/testcases/kernel/syscalls/nice/nice01.c
@@ -5,10 +5,12 @@
* Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz>
*/
-/*
- * Verify that root can provide a negative value to nice()
- * and hence root can decrease the nice value of the process
- * using nice() system call
+/*\
+ * [Description]
+ *
+ * Verify that root can provide a negative value to nice()
+ * and hence root can decrease the nice value of the process
+ * using nice() system call
*/
#include <unistd.h>
#include <errno.h>
diff --git a/testcases/kernel/syscalls/nice/nice02.c b/testcases/kernel/syscalls/nice/nice02.c
index 036301000..1c7103758 100644
--- a/testcases/kernel/syscalls/nice/nice02.c
+++ b/testcases/kernel/syscalls/nice/nice02.c
@@ -4,10 +4,13 @@
* Ported to LTP: Wayne Boyer
* Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz>
*/
-/*
- * Verify that any user can successfully increase the nice value of
- * the process by passing a higher increment value (> max. applicable limits)
- * to nice() system call.
+
+/*\
+ * [Description]
+ *
+ * Verify that any user can successfully increase the nice value of
+ * the process by passing a higher increment value (> max. applicable limits)
+ * to nice() system call.
*/
#include <unistd.h>
#include <errno.h>
diff --git a/testcases/kernel/syscalls/nice/nice03.c b/testcases/kernel/syscalls/nice/nice03.c
index 6047dd4cc..8198f2cf0 100644
--- a/testcases/kernel/syscalls/nice/nice03.c
+++ b/testcases/kernel/syscalls/nice/nice03.c
@@ -4,10 +4,13 @@
* Ported to LTP: Wayne Boyer
* Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz>
*/
-/*
- * Verify that any user can successfully increase the nice value of
- * the process by passing an increment value (< max. applicable limits) to
- * nice() system call.
+
+/*\
+ * [Description]
+ *
+ * Verify that any user can successfully increase the nice value of
+ * the process by passing an increment value (< max. applicable limits) to
+ * nice() system call.
*/
#include <unistd.h>
#include <stdlib.h>
diff --git a/testcases/kernel/syscalls/nice/nice04.c b/testcases/kernel/syscalls/nice/nice04.c
index 1d64311b3..ac156008e 100644
--- a/testcases/kernel/syscalls/nice/nice04.c
+++ b/testcases/kernel/syscalls/nice/nice04.c
@@ -4,9 +4,12 @@
* Ported to LTP: Wayne Boyer
* Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz>
*/
-/*
- * Verify that, nice(2) fails when, a non-root user attempts to increase
- * the priority of a process by specifying a negative increment value.
+
+/*\
+ * [Description]
+ *
+ * Verify that, nice(2) fails when, a non-root user attempts to increase
+ * the priority of a process by specifying a negative increment value.
*/
#include <pwd.h>
#include <unistd.h>
--
2.36.1
More information about the ltp
mailing list