From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1SDVgO-0007Da-1g for ltp-list@lists.sourceforge.net; Fri, 30 Mar 2012 06:51:36 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sog-mx-3.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1SDVgJ-0005rk-Id for ltp-list@lists.sourceforge.net; Fri, 30 Mar 2012 06:51:36 +0000 Received: from mailserver.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id q2U6pM3u017210 for ; Fri, 30 Mar 2012 14:51:23 +0800 Message-ID: <4F7557B2.2090608@cn.fujitsu.com> Date: Fri, 30 Mar 2012 14:50:26 +0800 From: Wanlong Gao MIME-Version: 1.0 References: <4F73BD76.7050505@cn.fujitsu.com> In-Reply-To: <4F73BD76.7050505@cn.fujitsu.com> Subject: Re: [LTP] [PATCH]pthread_join:4-1.c:ignore detached thread Reply-To: gaowanlong@cn.fujitsu.com List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: lidan Cc: ltp-list@lists.sourceforge.net On 03/29/2012 09:40 AM, lidan wrote: > Case pthread_join/4-1.c aims to check the following assertion > "If the thread calling pthread_join is canceled, the joined > thread remains joinable." > It uses array scenarii defined in "threads_scenarii.c" which > sets attribute of some threads as detached. > This patch ignores the detached threads since once > a thread has been detached, it can't be joined with > pthread_join(3) or be made joinable again. pushed, thanks, Wanlong Gao > > > Signed-off-by: DAN LI > --- > .../conformance/interfaces/pthread_join/4-1.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c > index fb8c8d3..16ac7e8 100644 > --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c > +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c > @@ -91,6 +91,9 @@ int main(int argc, char *argv[]) > scenar_init(); > > for (sc = 0; sc < NSCENAR; sc++) { > + if (scenarii[sc].detached == 1) > + continue; > + > #if VERBOSE > 0 > output("-----\n"); > output("Starting test with scenario (%i): %s\n", ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list