Skip to contentSkip to conversation

lgetxattr02: Convert docs to docparse

PATCH Superseded Ma Xinjian via ltp 2 participants 2 messages Aug 23, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lgetxattr02: Convert docs to docparse

---
 .../kernel/syscalls/lgetxattr/lgetxattr02.c   | 27 ++++++++-----------
 1 file changed, 11 insertions(+), 16 deletions(-)
testcases/kernel/syscalls/lgetxattr/lgetxattr02.c +11 -16
index 183239a26..57a422953 100644
@@ -1,23 +1,18 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
-* Copyright (c) 2016 Fujitsu Ltd.
-* Author: Jinbao Huang <[email protected]>
-*/
+ * Copyright (c) 2016 Fujitsu Ltd.
+ * Author: Jinbao Huang <[email protected]>
+ */
 
 /*
-* 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>
Signature · 5 lines
2.42.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Ma,

...

testcases/kernel/syscalls/lgetxattr/lgetxattr02.c line 7

Quoted 10 lines

// SPDX-License-Identifier: GPL-2.0-or-later
/*

testcases/kernel/syscalls/lgetxattr/lgetxattr02.c +3 -3
-* Copyright (c) 2016 Fujitsu Ltd.
-* Author: Jinbao Huang <[email protected]>
-*/
+ * Copyright (c) 2016 Fujitsu Ltd.
+ * Author: Jinbao Huang <[email protected]>
+ */
 
 /*

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

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp