URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
/* Check corner error case: specifying invalid scheduling policy.
|
/* Check corner error case: specifying invalid scheduling policy.
|
#notarget: cris*-*-elf
|
#notarget: cris*-*-elf
|
*/
|
*/
|
|
|
#include <sched.h>
|
#include <sched.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <errno.h>
|
#include <errno.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
if (sched_get_priority_min (-1) != -1
|
if (sched_get_priority_min (-1) != -1
|
|| errno != EINVAL)
|
|| errno != EINVAL)
|
abort ();
|
abort ();
|
|
|
errno = 0;
|
errno = 0;
|
|
|
if (sched_get_priority_max (-1) != -1
|
if (sched_get_priority_max (-1) != -1
|
|| errno != EINVAL)
|
|| errno != EINVAL)
|
abort ();
|
abort ();
|
|
|
printf ("pass\n");
|
printf ("pass\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.