* [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
* [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support
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
0 siblings, 1 reply; 4+ messages in thread
From: Jan Stancek @ 2016-06-24 12:40 UTC (permalink / raw)
To: ltp
----- Original Message -----
> From: "shuang qiu" <shuang.qiu@oracle.com>
> To: ltp@lists.linux.it
> Sent: Friday, 24 June, 2016 5:36:02 AM
> Subject: [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support
>
> From: Shuang Qiu <shuang.qiu@oracle.com>
>
> Return TCONF if there is no xattr support in fs or mount without user_xattr
> option
Why only in removexattr02? Should we do the same for removexattr01?
Regards,
Jan
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support
2016-06-24 12:40 ` Jan Stancek
@ 2016-06-24 13:20 ` Shuang Qiu
2016-06-24 13:25 ` Jan Stancek
0 siblings, 1 reply; 4+ messages in thread
From: Shuang Qiu @ 2016-06-24 13:20 UTC (permalink / raw)
To: ltp
On 06/24/2016 08:40 PM, Jan Stancek wrote:
>
>
>
> ----- Original Message -----
>> From: "shuang qiu" <shuang.qiu@oracle.com>
>> To: ltp@lists.linux.it
>> Sent: Friday, 24 June, 2016 5:36:02 AM
>> Subject: [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support
>>
>> From: Shuang Qiu <shuang.qiu@oracle.com>
>>
>> Return TCONF if there is no xattr support in fs or mount without user_xattr
>> option
> Why only in removexattr02? Should we do the same for removexattr01?
removexattr01 already handle such situation.
Thanks
Shuang
>
> Regards,
> Jan
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support
2016-06-24 13:20 ` Shuang Qiu
@ 2016-06-24 13:25 ` Jan Stancek
0 siblings, 0 replies; 4+ messages in thread
From: Jan Stancek @ 2016-06-24 13:25 UTC (permalink / raw)
To: ltp
----- Original Message -----
> From: "Shuang Qiu" <shuang.qiu@oracle.com>
> To: "Jan Stancek" <jstancek@redhat.com>
> Cc: ltp@lists.linux.it
> Sent: Friday, 24 June, 2016 3:20:32 PM
> Subject: Re: [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr support
>
> On 06/24/2016 08:40 PM, Jan Stancek wrote:
> >
> >
> >
> > ----- Original Message -----
> >> From: "shuang qiu" <shuang.qiu@oracle.com>
> >> To: ltp@lists.linux.it
> >> Sent: Friday, 24 June, 2016 5:36:02 AM
> >> Subject: [LTP] [PATCH] syscalls/removexattr02:skip the test if no xattr
> >> support
> >>
> >> From: Shuang Qiu <shuang.qiu@oracle.com>
> >>
> >> Return TCONF if there is no xattr support in fs or mount without
> >> user_xattr
> >> option
> > Why only in removexattr02? Should we do the same for removexattr01?
> removexattr01 already handle such situation.
Sorry, I missed that. Pushed with curly brackets around if.
Regards,
Jan
>
> Thanks
> Shuang
> >
> > Regards,
> > Jan
>
>
^ permalink raw reply [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