All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] posix_fadvise: Convert docs to docparse
@ 2025-01-15 10:38 Shiyang Ruan via ltp
  2025-01-15 12:31 ` Ricardo B. Marliere via ltp
  2025-01-16  8:46 ` [LTP] [PATCH v2] " Shiyang Ruan via ltp
  0 siblings, 2 replies; 6+ messages in thread
From: Shiyang Ruan via ltp @ 2025-01-15 10:38 UTC (permalink / raw)
  To: ltp, pvorel

Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
---
 .../kernel/syscalls/fadvise/posix_fadvise01.c  | 17 +++--------------
 .../kernel/syscalls/fadvise/posix_fadvise02.c  | 17 +++--------------
 .../kernel/syscalls/fadvise/posix_fadvise03.c  | 18 ++++--------------
 .../kernel/syscalls/fadvise/posix_fadvise04.c  | 17 +++--------------
 4 files changed, 13 insertions(+), 56 deletions(-)

diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
index 71e6454d8..650459455 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
@@ -3,21 +3,10 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise01.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong ADVISE value.
- *
- * USAGE
- *	posix_fadvise01
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns 0 for permissible ADVISE value.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
index 303f776e4..39a1f1b57 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
@@ -3,21 +3,10 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise02.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong file descriptor.
- *
- * USAGE
- *	posix_fadvise02
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns EBADF for wrong file descriptor.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
index 98d8d2930..9bfd42439 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
@@ -3,21 +3,11 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise03.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong ADVISE value.
- *
- * USAGE
- *	posix_fadvise03
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns EINVAL for the ADVISE value not
+ * permissible on the architecture.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
index 8baf91bb0..2fe7e3577 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
@@ -3,21 +3,10 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise04.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for pipe descriptor.
- *
- * USAGE
- *	posix_fadvise04
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns ESPIPE for pipe descriptor.
  */
 
 #include <fcntl.h>
-- 
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-05 10:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 10:38 [LTP] [PATCH] posix_fadvise: Convert docs to docparse Shiyang Ruan via ltp
2025-01-15 12:31 ` Ricardo B. Marliere via ltp
2025-01-15 12:45   ` Petr Vorel
2025-01-16  8:15     ` Shiyang Ruan via ltp
2025-01-16  8:46 ` [LTP] [PATCH v2] " Shiyang Ruan via ltp
2025-02-05 10:10   ` Shiyang Ruan via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.