1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Linux: Add missing scheduler constants to <sched.h>

And add a test, misc/tst-sched-consts, that checks
consistency with <sched.h>.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer
2024-09-11 10:05:08 +02:00
parent 21571ca0d7
commit c444cc1d83
4 changed files with 82 additions and 0 deletions

View File

@ -44,6 +44,8 @@ check_unused (void)
static int
do_test (void)
{
_Static_assert (SCHED_OTHER == SCHED_NORMAL,
"SCHED_OTHER, SCHED_NORMAL values");
TEST_VERIFY (sizeof (struct sched_attr) < sizeof (u));
/* Check that reading and re-applying the current policy works. */