public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support
@ 2016-06-24  3:36 shuang.qiu
  2016-06-24 12:40 ` Jan Stancek
  0 siblings, 1 reply; 4+ messages in thread
From: shuang.qiu @ 2016-06-24  3:36 UTC (permalink / raw)
  To: ltp

From: Shuang Qiu <shuang.qiu@oracle.com>

Return TCONF if there is no xattr support in fs or mount without user_xattr option

Signed-off-by: Shuang Qiu <shuang.qiu@oracle.com>
---
 .../kernel/syscalls/removexattr/removexattr02.c    |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testcases/kernel/syscalls/removexattr/removexattr02.c b/testcases/kernel/syscalls/removexattr/removexattr02.c
index 58f310a..cea8733 100644
--- a/testcases/kernel/syscalls/removexattr/removexattr02.c
+++ b/testcases/kernel/syscalls/removexattr/removexattr02.c
@@ -85,6 +85,10 @@ static void verify_removexattr(struct test_case *tc)
 {
 
 	TEST(removexattr(tc->path, tc->name));
+	if (TEST_RETURN == -1 && TEST_ERRNO == ENOTSUP)
+		tst_brkm(TCONF, cleanup, "No xattr support in fs or "
+			 "mount without user_xattr option");
+
 	if (TEST_RETURN != -1) {
 		tst_resm(TFAIL, "removexattr() succeeded unexpectedly");
 		return;
-- 
1.7.9.5


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

end of thread, other threads:[~2016-06-24 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24  3:36 [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support shuang.qiu
2016-06-24 12:40 ` Jan Stancek
2016-06-24 13:20   ` Shuang Qiu
2016-06-24 13:25     ` Jan Stancek

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