[LTP] [PATCH 2/2] ustat0{1, 2}: Mark failure on Btrfs with known-fail tag
Petr Vorel
pvorel@suse.cz
Mon Jan 3 16:13:32 CET 2022
ustat() has been always broken on Btrfs and it's unlikely to be fixed
due ustat() being deprecated (glibc doesn't expose this system call
anymore).
Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/kernel/syscalls/ustat/ustat01.c | 4 ++++
testcases/kernel/syscalls/ustat/ustat02.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/testcases/kernel/syscalls/ustat/ustat01.c b/testcases/kernel/syscalls/ustat/ustat01.c
index 0252858beb..e314649e8d 100644
--- a/testcases/kernel/syscalls/ustat/ustat01.c
+++ b/testcases/kernel/syscalls/ustat/ustat01.c
@@ -44,6 +44,10 @@ static void setup(void)
static struct tst_test test = {
.test_all = run,
.setup = setup,
+ .tags = (const struct tst_tag[]) {
+ {"known-fail", "ustat() is known to fail with EINVAL on Btrfs"},
+ {}
+ }
};
#else
TST_TEST_TCONF("testing ustat requires <sys/ustat.h> or <linux/types.h>");
diff --git a/testcases/kernel/syscalls/ustat/ustat02.c b/testcases/kernel/syscalls/ustat/ustat02.c
index d08446eaa1..67d2918f83 100644
--- a/testcases/kernel/syscalls/ustat/ustat02.c
+++ b/testcases/kernel/syscalls/ustat/ustat02.c
@@ -63,6 +63,10 @@ static struct tst_test test = {
.test = run,
.setup = setup,
.tcnt = ARRAY_SIZE(tc),
+ .tags = (const struct tst_tag[]) {
+ {"known-fail", "ustat() is known to fail with EINVAL on Btrfs"},
+ {}
+ }
};
#else
TST_TEST_TCONF("testing ustat requires <sys/ustat.h> or <linux/types.h>");
--
2.34.1
More information about the ltp
mailing list