data/method/gdb/gdb-12.1/sim/testsuite/cris/c/sched1.c

17 lines
221 B
C
Raw Normal View History

2024-01-29 10:44:43 +08:00
/*
#progos: linux
*/
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main (void)
{
if (sched_getscheduler (getpid ()) != SCHED_OTHER)
abort ();
printf ("pass\n");
exit (0);
}