[PATCH v3 0/2] posix: Improve test case coverage for cpuset macros
Frédéric Bérat
fberat@redhat.com
Fri Feb 14 17:13:10 GMT 2025
Hello,
This patchset aims to improve the test coverage for cpuset macros.
The aim is to cover all macros with reasonable test cases, including bad actor
access.
Fred.
Changes since v2:
- Fix bad actor access from v2 (CPU being check didn't match the one being set)
Changes since v1:
- Fixed missing spaces before braces
- Added sanity checks for CPU_ALLOC_SIZE
Changes since v0:
- Refactor the support_next_fo_fault function based on feedback, and use the
new support_next_to_fault_before function.
- Fix typos
- Remove cpuset structure size check
---
Frédéric Bérat (2):
support: Add support_next_to_fault_before support function
posix: Rewrite cpuset tests
posix/Makefile | 3 +-
posix/tst-cpuset-dynamic.c | 63 ++++++++++++++++++
posix/tst-cpuset-skeleton.c | 123 ++++++++++++++++++++++++++++++++++++
posix/tst-cpuset-static.c | 61 ++++++++++++++++++
posix/tst-cpuset.c | 82 ------------------------
support/next_to_fault.c | 44 ++++++++++---
support/next_to_fault.h | 5 ++
7 files changed, 288 insertions(+), 93 deletions(-)
create mode 100644 posix/tst-cpuset-dynamic.c
create mode 100644 posix/tst-cpuset-skeleton.c
create mode 100644 posix/tst-cpuset-static.c
delete mode 100644 posix/tst-cpuset.c
--
2.48.1
More information about the Libc-alpha
mailing list