Hi, I have notice HUNG status for pthread_equal/2-1.c under posix test suite. conformance/interfaces/pthread_equal/2-1.test:execution:HUNG
This because of while(do_it)loop is behaving as while(1). do_it updated value from one thread is not reflecting in the other thread because the type is not proper. I have changed the type from char -> volatile int I have shared results before and after this patch. Before PATCH: conformance/interfaces/pthread_equal/2-1.test:execution:HUNG After PATCH: conformance/interfaces/pthread_equal/2-1.test:execution:PASS I have attached patch and below. Please review the same. Best regards, Naresh Kamboju Signed-off-by: Naresh Kamboju < [email protected] > diff -Naurb a/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c 2005-06-03 22:01:47.000000000 +0530 +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c 2009-07-29 14:27:05.000000000 +0530 @@ -80,7 +80,7 @@ /*********************************** Test cases *****************************************/ /********************************************************************************************/ -char do_it=1; +volatile int do_it=1; unsigned long count_ope=0; #ifdef WITH_SYNCHRO sem_t semsig1;
ltp-fix-pthread_equal_2-1.patch
Description: Binary data
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
