From: mreed <mr...@us...> - 2006-09-26 15:46:49
|
Update of /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv9767/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler Modified Files: 15-1.c 15-2.c Log Message: When calling pthread_attr_setscope, PTHREAD_SCOPE_PROCESS is not supported by linux, change it to PTHREAD_SCOPE_SYSTEM for testing Index: 15-1.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/15-1.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** 15-1.c 3 Jun 2005 16:33:12 -0000 1.5 --- 15-1.c 26 Sep 2006 15:46:45 -0000 1.6 *************** *** 45,50 **** result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS); if(result == ENOTSUP) { ! printf("Process contention scope threads are not supported.\n"); ! return PTS_UNSUPPORTED; } else if(result != 0) { printf("An error occurs when calling pthread_attr_setscope()"); --- 45,51 ---- result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS); if(result == ENOTSUP) { ! printf("Process contention scope threads are not supported. Use System contention schope instead.\n"); ! result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM); ! // return PTS_UNSUPPORTED; } else if(result != 0) { printf("An error occurs when calling pthread_attr_setscope()"); Index: 15-2.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/15-2.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** 15-2.c 3 Jun 2005 16:33:12 -0000 1.5 --- 15-2.c 26 Sep 2006 15:46:45 -0000 1.6 *************** *** 51,56 **** result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS); if(result == ENOTSUP) { ! printf("Process contention scope threads are not supported.\n"); ! return PTS_UNSUPPORTED; } else if(result != 0) { printf("An error occurs when calling pthread_attr_setscope()"); --- 51,57 ---- result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS); if(result == ENOTSUP) { ! printf("Process contention scope threads are not supported. Use System contention schope instead.\n"); ! result = pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM); ! // return PTS_UNSUPPORTED; } else if(result != 0) { printf("An error occurs when calling pthread_attr_setscope()"); |