[LTP] [PATCH v3 0/4] Add tst_fd iterator API

Cyril Hrubis
2024-01-15T12:53:41Z

Changes in v3:
- Made use of newly introduced API to specify an array of possible errors

Jan and Amir please check if the error sets are not missing anything

- Fixed a few minor problems as pointed out by Peter

Changes in v2:

- Changed the API into iterator rather than a funciton callback
- Added a lot more fd types
- Added splice test

Cyril Hrubis (4):
lib: Add tst_fd iterator
syscalls: readahead01: Make use of tst_fd
syscalls: accept: Add tst_fd test
syscalls: splice07: New splice tst_fd iterator test

include/tst_fd.h | 61 ++++
include/tst_test.h | 1 +
lib/tst_fd.c | 325 ++++++++++++++++++
runtest/syscalls | 2 +
testcases/kernel/syscalls/accept/.gitignore | 1 +
testcases/kernel/syscalls/accept/accept01.c | 8 -
testcases/kernel/syscalls/accept/accept03.c | 60 ++++
.../kernel/syscalls/readahead/readahead01.c | 52 +--
testcases/kernel/syscalls/splice/.gitignore | 1 +
testcases/kernel/syscalls/splice/splice07.c | 70 ++++
10 files changed, 548 insertions(+), 33 deletions(-)
create mode 100644 include/tst_fd.h
create mode 100644 lib/tst_fd.c
create mode 100644 testcases/kernel/syscalls/accept/accept03.c
create mode 100644 testcases/kernel/syscalls/splice/splice07.c

--
2.43.0