Garrett Cooper wrote:
> On Mon, Oct 18, 2010 at 2:32 AM, Gui Jianfeng
> <[email protected]> wrote:
>> Hi
>>
>> Currently, the variable "timeout" type is int, We should make it to be 
>> "unsigned long".
>> Otherwise, we'll get an unexpected value in thread function, consequently, 
>> test fails.
>>
>> Signed-off-by: Gui Jianfeng <[email protected]>
>> ---
>>  .../functional/threads/pi_test/pitest-1.c          |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/testcases/ /functional/threads/pi_test/pitest-1.c 
>> b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-1.c
>> index b8969a8..9fac992 100644
>> --- a/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-1.c
>> +++ b/testcases/open_posix_testsuite/functional/threads/pi_test/pitest-1.c
>> @@ -296,7 +296,7 @@ int main(int argc, char **argv)
>>
>>        /* Start TB thread (boosting thread) */
>>        DPRINTF(stderr,"Main Thread: start TB thread\n");
>> -       int timeout = multiplier * 20;
>> +       unsigned long timeout = multiplier * 20;
>>        rc = pthread_create(&threadtb, &threadattr, thread_tb,
>>                            &timeout);
>>         if (rc != 0) {
> 
>     Please try this patch out instead and let me know how it goes.

Works good for me.

Gui

> Thanks,
> -Garrett


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to