Testing statx syscall
PATCH v7 4/4 Testing statx syscall
From: vaishnavid <[email protected]>
* statx04.c: This file will check attribute flag by defining flag to that directory and checks another directory with no flags. Changes from V5 to V6:
* Made changes in the m4 file and LTP_CHECK_STATX added to configure.ac
* Replaced arch-specific printf format with general one.
* Added ifndef cases for structs in stat.h.
--- runtest/syscalls | 3 +- testcases/kernel/syscalls/statx/.gitignore | 3 +- testcases/kernel/syscalls/statx/statx04.c | 217 +++++++++++++++++++++++++++++ 3 files changed, 221 insertions(+), 2 deletions(-) create mode 100644 testcases/kernel/syscalls/statx/statx04.c
runtest/syscalls +2 -1
@@ -1498,4 +1498,5 @@ copy_file_range01 copy_file_range01 statx01 statx01 statx02 statx02 -statx03 statx03 +statx03 statx03 +statx04 statx04
testcases/kernel/syscalls/statx/.gitignore +2 -1
@@ -1,3 +1,4 @@ /statx01 /statx02 -/statx03 +/statx03 +/statx04
testcases/kernel/syscalls/statx/statx04.c new file +217 -0
217 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH v7 4/4 Testing statx syscall
Hi!
I've split this test into two, one for the encryption flag and one for the rest so that the commonly implemented flags could be executed against all filesystems, which increases the coverate a lot.
I've also fixed the same problem as in the previous tests.
And also changed the encryption test not to fail on kernels that do not have CONFIG_EXT4_ENCRYPTION compiled in the kernel.
Thanks!
Signature · 2 lines
Cyril Hrubis [email protected]