11 * $FreeBSD: src/tools/regression/p1003_1b/prutil.c,v 1.1 2000/02/16 14:28:41 dufault Exp $
12 * $DragonFly: src/tools/regression/p1003_1b/prutil.c,v 1.2 2003/06/17 06:29:11 dillon Exp $
14 void quit(const char *text
)
19 char *sched_text(int scheduler
)
33 return "Illegal scheduler value";
37 int sched_is(int line
, struct sched_param
*p
, int shouldbe
)
40 struct sched_param param
;
42 /* What scheduler are we running now?
45 scheduler
= sched_getscheduler(0);
46 if (sched_getparam(0, ¶m
))
47 quit("sched_getparam");
52 if (shouldbe
!= -1 && scheduler
!= shouldbe
)
55 "At line %d the scheduler should be %s yet it is %s.\n",
56 line
, sched_text(shouldbe
), sched_text(scheduler
));