[LTP] [PATCH v3] fsync03: Convert docs to RST format
Ma Xinjian
maxj.fnst@fujitsu.com
Wed Feb 19 08:45:50 CET 2025
Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
testcases/kernel/syscalls/fsync/fsync03.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/testcases/kernel/syscalls/fsync/fsync03.c b/testcases/kernel/syscalls/fsync/fsync03.c
index d32c4a3e7..93913df9f 100644
--- a/testcases/kernel/syscalls/fsync/fsync03.c
+++ b/testcases/kernel/syscalls/fsync/fsync03.c
@@ -4,14 +4,14 @@
* Copyright (c) 2019 SUSE LLC <mdoucha@suse.cz>
*/
-/*
- * Test Description:
- * Testcase to check that fsync(2) sets errno correctly.
- * 1. Call fsync() on a pipe(fd), and expect EINVAL.
- * 2. Call fsync() on a socket(fd), and expect EINVAL.
- * 3. Call fsync() on a closed fd, and test for EBADF.
- * 4. Call fsync() on an invalid fd, and test for EBADF.
- * 5. Call fsync() on a fifo(fd), and expect EINVAL.
+/*\
+ * Verify that fsync(2) sets errno to:
+ *
+ * 1. EINVAL if calling fsync() on a pipe(fd).
+ * 2. EINVAL if calling fsync() on a socket(fd).
+ * 3. EBADF if calling fsync() on a closed fd.
+ * 4. EBADF if calling fsync() on an invalid fd.
+ * 5. EINVAL if calling fsync() on a fifo(fd).
*/
#include <unistd.h>
--
2.47.0
More information about the ltp
mailing list