public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Ma Xinjian via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] lgetxattr02: Convert docs to docparse
Date: Fri, 23 Aug 2024 16:03:37 +0800	[thread overview]
Message-ID: <20240823080337.199654-1-maxj.fnst@fujitsu.com> (raw)

Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
 .../kernel/syscalls/lgetxattr/lgetxattr02.c   | 27 ++++++++-----------
 1 file changed, 11 insertions(+), 16 deletions(-)

diff --git a/testcases/kernel/syscalls/lgetxattr/lgetxattr02.c b/testcases/kernel/syscalls/lgetxattr/lgetxattr02.c
index 183239a26..57a422953 100644
--- a/testcases/kernel/syscalls/lgetxattr/lgetxattr02.c
+++ b/testcases/kernel/syscalls/lgetxattr/lgetxattr02.c
@@ -1,23 +1,18 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
-* Copyright (c) 2016 Fujitsu Ltd.
-* Author: Jinbao Huang <huangjb.jy@cn.fujitsu.com>
-*/
+ * Copyright (c) 2016 Fujitsu Ltd.
+ * Author: Jinbao Huang <huangjb.jy@cn.fujitsu.com>
+ */
 
 /*
-* Test Name: lgetxattr02
-*
-* Description:
-* 1) lgetxattr(2) fails if the named attribute does not exist.
-* 2) lgetxattr(2) fails if the size of the value buffer is too small
-*    to hold the result.
-* 3) lgetxattr(2) fails when attemptes to read from a invalid address.
-*
-* Expected Result:
-* 1) lgetxattr(2) should return -1 and set errno to ENODATA.
-* 2) lgetxattr(2) should return -1 and set errno to ERANGE.
-* 3) lgetxattr(2) should return -1 and set errno to EFAULT.
-*/
+ * [Description]
+ *
+ * Verify that, lgetxattr(2) returns -1 and sets errno to
+ *
+ * 1. ENODATA if the named attribute does not exist.
+ * 2. ERANGE if the size of the value buffer is too small to hold the result.
+ * 3. EFAULT when reading from an invalid address.
+ */
 
 #include "config.h"
 #include <errno.h>
-- 
2.42.0


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

             reply	other threads:[~2024-08-23  8:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-23  8:03 Ma Xinjian via ltp [this message]
2024-08-23 11:51 ` [LTP] [PATCH] lgetxattr02: Convert docs to docparse Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240823080337.199654-1-maxj.fnst@fujitsu.com \
    --to=ltp@lists.linux.it \
    --cc=maxj.fnst@fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox