Skip to contentSkip to conversation

fsync03: Convert docs to RST format

PATCH New Ma Xinjian via ltp 1 participant 1 message Feb 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 fsync03: Convert docs to RST format

---
 testcases/kernel/syscalls/fsync/fsync03.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
testcases/kernel/syscalls/fsync/fsync03.c +8 -8
index d32c4a3e7..3eb47046e 100644
@@ -4,14 +4,14 @@
  *   Copyright (c) 2019 SUSE LLC <[email protected]>
  */
 
-/*
- * 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) returns -1 and sets errno to
+ *
+ * - EINVAL if calling fsync() on a pipe(fd).
+ * - EINVAL if calling fsync() on a socket(fd).
+ * - EBADF if calling fsync() on a closed fd.
+ * - EBADF if calling fsync() on an invalid fd.
+ * - EINVAL if calling fsync() on a fifo(fd).
  */
 
 #include <unistd.h>
Signature · 5 lines
2.47.0


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