[LTP] [PATCH 1/6] syscalls/kill03: Fix test description metadata

Ricardo B. Marlière rbm@suse.com
Wed May 14 12:49:54 CEST 2025


From: Ricardo B. Marlière <rbm@suse.com>

Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
---
 testcases/kernel/syscalls/kill/kill03.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/testcases/kernel/syscalls/kill/kill03.c b/testcases/kernel/syscalls/kill/kill03.c
index 7d307067859d45ec64542e2c2b9e897fb6191b25..8d91cc615294c6cbfcc0bcfb8c0d1824da645e35 100644
--- a/testcases/kernel/syscalls/kill/kill03.c
+++ b/testcases/kernel/syscalls/kill/kill03.c
@@ -1,15 +1,17 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (c) International Business Machines  Corp., 2001
- *
- * 1) kill() fails with errno set to EINVAL if given an invalid signal.
- * 2) kill() fails with errno set to ESRCH if given a non-existent pid.
- * 3) kill() fails with errno set to ESRCH if the given pid is INT_MIN.
- *
- * HISTORY
  *	07/2001 Ported by Wayne Boyer
  */
 
+/*\
+ * Verify that kill(2) fails with the correct error codes:
+ *
+ * - EINVAL if given an invalid signal.
+ * - ESRCH if given a non-existent pid.
+ * - ESRCH if the given pid is INT_MIN.
+ */
+
 #include <sys/types.h>
 #include <signal.h>
 #include <unistd.h>

-- 
2.49.0



More information about the ltp mailing list