public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] lgetxattr02: Convert docs to docparse
@ 2024-08-23  8:03 Ma Xinjian via ltp
  2024-08-23 11:51 ` Petr Vorel
  0 siblings, 1 reply; 2+ messages in thread
From: Ma Xinjian via ltp @ 2024-08-23  8:03 UTC (permalink / raw)
  To: ltp

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

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

* Re: [LTP] [PATCH] lgetxattr02: Convert docs to docparse
  2024-08-23  8:03 [LTP] [PATCH] lgetxattr02: Convert docs to docparse Ma Xinjian via ltp
@ 2024-08-23 11:51 ` Petr Vorel
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2024-08-23 11:51 UTC (permalink / raw)
  To: Ma Xinjian; +Cc: ltp

Hi Ma,

...
>  // 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>
> + */

>  /*
This needs to be '/*\' otherwise the comment is ignored. I fixed it and merged,
thanks!

Kind regards,
Petr

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

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

end of thread, other threads:[~2024-08-23 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23  8:03 [LTP] [PATCH] lgetxattr02: Convert docs to docparse Ma Xinjian via ltp
2024-08-23 11:51 ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox