unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
To: "Marijn Schouten (hkBst)" <hkBst@gentoo.org>
Cc: bug-guile@gnu.org, guile-devel@gnu.org
Subject: Re: popen test hangs
Date: Thu, 09 Jul 2009 00:04:01 +0100	[thread overview]
Message-ID: <87r5wqrd3y.fsf@arudy.ossau.uklinux.net> (raw)
In-Reply-To: <4A5359C5.4050105@gentoo.org> (Marijn Schouten's message of "Tue\, 07 Jul 2009 16\:20\:53 +0200")

"Marijn Schouten (hkBst)" <hkBst@gentoo.org> 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




      reply	other threads:[~2009-07-08 23:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-05 21:06 GNU Guile 1.8.7 released Ludovic Courtès
2009-07-06 10:40 ` popen test hangs (was GNU Guile 1.8.7 released) Marijn Schouten (hkBst)
2009-07-06 18:25   ` popen test hangs Neil Jerram
2009-07-06 23:59     ` Marijn Schouten (hkBst)
2009-07-07 14:20       ` Marijn Schouten (hkBst)
2009-07-08 23:04         ` Neil Jerram [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5wqrd3y.fsf@arudy.ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=bug-guile@gnu.org \
    --cc=guile-devel@gnu.org \
    --cc=hkBst@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).