On 08/14/2012 05:00 PM, Kang Kai wrote:
> This case fails randomly with "Segmentation fault". Reset VERBOSE to 6
> can avoid this problem.

Can you explain that why "reset VERBOSE" can avoid this "Seg Fault" problem?

> 
> Fix typo at same time.

The typo fix is OK.

Thanks,
Wanlong Gao

> 
> Signed-off-by: Kang Kai <kai.k...@windriver.com>
> ---
>  .../conformance/interfaces/pthread_detach/4-3.c    |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git 
> a/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c 
> b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c
> index 5c15e93..23738dc 100644
> --- 
> a/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c
> +++ 
> b/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-3.c
> @@ -49,7 +49,7 @@
>  #include "../testfrmw/testfrmw.c"
>  
>  #ifndef VERBOSE
> -#define VERBOSE 1
> +#define VERBOSE 6
>  #endif
>  
>  #define WITH_SYNCHRO
> @@ -281,7 +281,7 @@ int main(int argc, char *argv[])
>  
>       do {
>               do_it2 = 0;
> -     } while (do_it2 = 0);
> +     } while (do_it2);
>  
>       ret = pthread_join(th_sig1, NULL);
>       if (ret)
> 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to