Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls/sched_getattr02: use a fixed size for EINVAL test
Test is using a 'size' based on sizeof(struct sched_attr), but since c48700d ("sched_attr: Do not define for glibc >= 2.41") that structure can now be defined by glibc which also defines additional fields. The kernel only checks if size is smaller than SCHED_ATTR_SIZE_VER0 (48 bytes). Use a fixed size (SCHED_ATTR_SIZE_VER0 - 1) for the test. Signed-off-by: Jan Stancek <[email protected]> Reviewed-by: Li Wang <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
- Loading branch information