From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UeRsm-0004uw-0N for ltp-list@lists.sourceforge.net; Mon, 20 May 2013 15:20:16 +0000 Date: Mon, 20 May 2013 17:21:24 +0200 From: chrubis@suse.cz Message-ID: <20130520152124.GA21509@rei.suse.cz> References: <4e8cb837f8dd19db77ca70bd3b0094b060b0b0a0.1368780870.git.jstancek@redhat.com> <20130520144827.GB21016@rei.suse.cz> <1279126164.4640384.1369062925009.JavaMail.root@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1279126164.4640384.1369062925009.JavaMail.root@redhat.com> Subject: Re: [LTP] [PATCH 2/2] waitid02: split code into separate testcases 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: Jan Stancek Cc: ltp-list@lists.sourceforge.net Hi! > I recall that we talked about limitation of single checkpoint per test and > since there were 3 children it somehow got stuck in my head that I need pipes. > But as I split it into separate testcases that should no longer apply. > I'll look into converting it to use TST_CHECKPOINT(). There could be one instance of the checkpoint active at the time but that is only because the TST_CHECKPOINT_INIT() does not take the FIFO name as a parameter. The rest of the code does mostly what the pipe() does but includes the timeout detection and has more strict error condition checks. If you create one checkpoint at global setup, you can reuse it in the rest of the testcases given that WAIT and SIGNAL is called exacly once for each test and test are not executed in parallel. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list