unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#24819: Intermittent 00-repl-server.test failure in 2.0.13
@ 2016-10-29 17:41 Rob Browning
  2016-10-29 18:19 ` Rob Browning
  2016-11-04 21:50 ` bug#24769: " Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Browning @ 2016-10-29 17:41 UTC (permalink / raw)
  To: 24819


I noticed that 00-repl-server.test had failed on some of the debian
buildds like this:

  Running 00-initial-env.test
  Running 00-repl-server.test
  FAIL: 00-repl-server.test: repl-server: simple expression - arguments: (expected-value "scheme@(repl-server)> $1 = 42\n" actual-value "$1 = 42\n")

After suspecting some kind of race, it turns out that I can reproduce
the failure locally (eventually) like this:

  cd test-suite
  while GUILE_LOAD_PATH=. \
    ./guile-test tests/00-initial-env.test tests/00-repl-server.test
  do
    :
  done

I don't know what's causing the trouble yet, but I augmented
read-until-prompt to print every line it reads to stderr, and nothing
appeared amiss there, at least.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24819: Intermittent 00-repl-server.test failure in 2.0.13
  2016-10-29 17:41 bug#24819: Intermittent 00-repl-server.test failure in 2.0.13 Rob Browning
@ 2016-10-29 18:19 ` Rob Browning
  2016-11-04 21:50 ` bug#24769: " Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Browning @ 2016-10-29 18:19 UTC (permalink / raw)
  To: 24819; +Cc: control

merge 24819 24769
thanks

Rob Browning <rlb@defaultvalue.org> writes:

> I noticed that 00-repl-server.test had failed on some of the debian
> buildds like this:
>
>   Running 00-initial-env.test
>   Running 00-repl-server.test
>   FAIL: 00-repl-server.test: repl-server: simple expression - arguments: (expected-value "scheme@(repl-server)> $1 = 42\n" actual-value "$1 = 42\n")

Looks like these two bugs refer to the same problem.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24769: bug#24819: Intermittent 00-repl-server.test failure in 2.0.13
  2016-10-29 17:41 bug#24819: Intermittent 00-repl-server.test failure in 2.0.13 Rob Browning
  2016-10-29 18:19 ` Rob Browning
@ 2016-11-04 21:50 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2016-11-04 21:50 UTC (permalink / raw)
  To: Rob Browning; +Cc: 24819-done, 24769-done

Hello!

Rob Browning <rlb@defaultvalue.org> skribis:

> I noticed that 00-repl-server.test had failed on some of the debian
> buildds like this:
>
>   Running 00-initial-env.test
>   Running 00-repl-server.test
>   FAIL: 00-repl-server.test: repl-server: simple expression - arguments: (expected-value "scheme@(repl-server)> $1 = 42\n" actual-value "$1 = 42\n")

The reason is that ‘repl-reader’ in boot-9.scm goes like this:

  (lambda* (prompt #:optional (reader (fluid-ref current-reader)))
    (if (not (char-ready?))
        (begin
          (display (if (string? prompt) prompt (prompt)))
          (set-port-column! (current-output-port) 0)))
    (force-output)
    (run-hook before-read-hook)
    ((or reader read) (current-input-port)))

Thus, if there’s already data available on the current input port, it
does not print the prompt.

That situation can arise in 00-repl-server.test if we write “(+ 40 2)”
too quickly.

Fixed in 2fbde7f02adb8c6585e9baf6e293ee49cd23d4c4.

Thanks!

Ludo’.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-04 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-29 17:41 bug#24819: Intermittent 00-repl-server.test failure in 2.0.13 Rob Browning
2016-10-29 18:19 ` Rob Browning
2016-11-04 21:50 ` bug#24769: " Ludovic Courtès

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).