From: mreed <mr...@us...> - 2006-09-26 15:53:50
|
Update of /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12478/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler Modified Files: 17-5.c Log Message: For Linux, 3 is a valide value for the scheduler, as found in the /linux/includ/sched.h file. For testing and invalid_policy, the invalid_policy value should not be 3 Index: 17-5.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-5.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** 17-5.c 3 Jun 2005 16:33:12 -0000 1.7 --- 17-5.c 26 Sep 2006 15:53:47 -0000 1.8 *************** *** 24,27 **** --- 24,31 ---- #include "posixtest.h" + #ifndef SCHED_BATCH + #define SCHED_BATCH 3 + #endif + int main(){ int old_priority, old_policy, new_policy; *************** *** 33,37 **** while(invalid_policy == SCHED_OTHER || invalid_policy == SCHED_FIFO || ! invalid_policy == SCHED_RR) invalid_policy++; --- 37,42 ---- while(invalid_policy == SCHED_OTHER || invalid_policy == SCHED_FIFO || ! invalid_policy == SCHED_RR || ! invalid_policy == SCHED_BATCH) invalid_policy++; |