blob: 8499e43fb8c67fc011333d1b7522c4d5cb0d4647 [file] [log] [blame]
/* Check corner error case: specifying invalid scheduling policy.
#notarget: cris*-*-elf
*/
#include <sched.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
int main (void)
{
if (sched_get_priority_min (-1) != -1
|| errno != EINVAL)
abort ();
errno = 0;
if (sched_get_priority_max (-1) != -1
|| errno != EINVAL)
abort ();
printf ("pass\n");
exit (0);
}