From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: Re: sleep 999 after tests Date: Fri, 17 Aug 2007 09:11:05 +1000 Message-ID: <87k5rvgjna.fsf@zip.com.au> References: <4656F9EA.4090300@phys.uu.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187305884 15033 80.91.229.12 (16 Aug 2007 23:11:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 23:11:24 +0000 (UTC) Cc: bug-guile@gnu.org To: Marijn Schouten Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Aug 17 01:11:21 2007 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILoUq-0004ej-NL for guile-bugs@m.gmane.org; Fri, 17 Aug 2007 01:11:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILoUp-0003PH-TK for guile-bugs@m.gmane.org; Thu, 16 Aug 2007 19:11:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILoUl-0003O4-QK for bug-guile@gnu.org; Thu, 16 Aug 2007 19:11:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILoUj-0003Ns-6l for bug-guile@gnu.org; Thu, 16 Aug 2007 19:11:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILoUj-0003Np-3f for bug-guile@gnu.org; Thu, 16 Aug 2007 19:11:13 -0400 Original-Received: from mailout1-1.pacific.net.au ([61.8.2.208] helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILoUi-0008W0-Jk for bug-guile@gnu.org; Thu, 16 Aug 2007 19:11:12 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id DD4F53955F9; Fri, 17 Aug 2007 09:11:06 +1000 (EST) Original-Received: from localhost (ppp2FC8.dyn.pacific.net.au [61.8.47.200]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 5DCF68C1A; Fri, 17 Aug 2007 09:11:06 +1000 (EST) Original-Received: from gg by localhost with local (Exim 4.67) (envelope-from ) id 1ILoUb-0000xL-NP; Fri, 17 Aug 2007 09:11:05 +1000 In-Reply-To: <4656F9EA.4090300@phys.uu.nl> (Marijn Schouten's message of "Fri, 25 May 2007 16:59:54 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3560 Archived-At: [belated followup] Marijn Schouten writes: > > the two sleep 999's in test-suite/tests/popen.test are really annoying. Is > there any good reason for them to be there? Yep. The parent process is supposed to see eof from the child, and in normal operation it then continues. If it blocks for the whole sleep 999 then something has gone wrong. > - "exec 1>/dev/null; echo closed 1>&2; exec 2>/dev/null; > sleep 999"))))) > + "exec 1>/dev/null; echo closed 1>&2; exec 2>/dev/null; > sleep 1"))))) Alas, no, 1 second may not be long enough for the parent to notice what the child has done, depending on system load etc. (It may be possible to make a better test, but bear in mind there was an actual bug in that area in the past, which the tests are trying to ensure doesn't raise its ugly head again.) _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile