From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.guile.devel Subject: Re: popen test hangs Date: Thu, 09 Jul 2009 00:04:01 +0100 Message-ID: <87r5wqrd3y.fsf@arudy.ossau.uklinux.net> References: <87k52mn8kb.fsf@gnu.org> <4A51D4BA.3020905@gentoo.org> <87ab3hsm6z.fsf@arudy.ossau.uklinux.net> <4A528FC5.4010006@gentoo.org> <4A5359C5.4050105@gentoo.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247094300 29851 80.91.229.12 (8 Jul 2009 23:05:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 23:05:00 +0000 (UTC) Cc: bug-guile@gnu.org, guile-devel@gnu.org To: "Marijn Schouten (hkBst)" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jul 09 01:04:53 2009 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 1MOgC4-000309-I3 for guile-bugs@m.gmane.org; Thu, 09 Jul 2009 01:04:52 +0200 Original-Received: from localhost ([127.0.0.1]:44594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOgC3-0003I9-Gu for guile-bugs@m.gmane.org; Wed, 08 Jul 2009 19:04:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOgBy-0003H6-TI for bug-guile@gnu.org; Wed, 08 Jul 2009 19:04:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOgBu-0003CH-GI for bug-guile@gnu.org; Wed, 08 Jul 2009 19:04:46 -0400 Original-Received: from [199.232.76.173] (port=34400 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOgBu-0003C0-96; Wed, 08 Jul 2009 19:04:42 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:54979) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOgBt-0001iZ-Ny; Wed, 08 Jul 2009 19:04:41 -0400 Original-Received: from arudy (host86-152-99-133.range86-152.btcentralplus.com [86.152.99.133]) by mail3.uklinux.net (Postfix) with ESMTP id C5A021F6811; Thu, 9 Jul 2009 00:04:01 +0100 (BST) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 301523801F; Thu, 9 Jul 2009 00:04:01 +0100 (BST) In-Reply-To: <4A5359C5.4050105@gentoo.org> (Marijn Schouten's message of "Tue\, 07 Jul 2009 16\:20\:53 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:4261 gmane.lisp.guile.devel:8852 Archived-At: "Marijn Schouten (hkBst)" writes: >> check-guile.log ends with >> >> PASS: popen.test: open-input-pipe: no args >> PASS: popen.test: open-input-pipe: port? >> PASS: popen.test: open-input-pipe: echo hello >> PASS: popen.test: open-input-pipe: stdin==stderr >> PASS: popen.test: open-input-pipe: stdout==stderr >> PASS: popen.test: open-input-pipe: open-input-pipe process gets >> (current-input-port) as stdin >> PASS: popen.test: open-input-pipe: no duplicate >> PASS: popen.test: open-output-pipe: no args >> PASS: popen.test: open-output-pipe: port? >> PASS: popen.test: open-output-pipe: stdin==stderr >> PASS: popen.test: open-output-pipe: stdout==stderr Thanks, that indicates this test: (pass-if "open-input-pipe process gets (current-input-port) as stdin" (let* ((p2c (pipe)) (port (with-input-from-port (car p2c) (lambda () (open-input-pipe "read line && echo $line"))))) (display "hello\n" (cdr p2c)) (force-output (cdr p2c)) (let ((result (eq? (read port) 'hello))) (close-port (cdr p2c)) (close-pipe port) result))) We had trouble with this one because of different shells. The open-input-pipe line was originally "read && echo $REPLY", but that didn't work in Dash, so we changed it to "read line && echo $line" as shown above. Is it possible that your sandbox/package manager uses a different shell from what is used when you run >>> ./pre-inst-guile -s test-suite/tests/popen.test by hand, and that "read line && echo $line" doesn't work in the sandbox/package manager shell? Thanks, Neil