From: mreed <mr...@us...> - 2006-09-26 15:43:21
|
Update of /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv8344/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam Modified Files: 20-1.c 21-1.c 21-2.c Log Message: When calling pthread_attr_setscope, PHREAD_SCOPE_PROCESS is not supported by linux, change it to PTHREAD_SCOPE_SYSTEM and the test will pass Index: 21-1.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-1.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** 21-1.c 3 Jun 2005 16:33:02 -0000 1.5 --- 21-1.c 26 Sep 2006 15:43:16 -0000 1.6 *************** *** 56,61 **** 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()"); --- 56,62 ---- 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: 20-1.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/20-1.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** 20-1.c 3 Jun 2005 16:33:02 -0000 1.5 --- 20-1.c 26 Sep 2006 15:43:16 -0000 1.6 *************** *** 52,57 **** 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()"); --- 52,58 ---- 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: 21-2.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-2.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** 21-2.c 3 Jun 2005 16:33:02 -0000 1.5 --- 21-2.c 26 Sep 2006 15:43:16 -0000 1.6 *************** *** 57,62 **** 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()"); --- 57,63 ---- 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()"); |