* bug#15833: 24.3.50; sit-for and sentinels
@ 2013-11-08 9:07 Helmut Eller
2013-11-11 5:08 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Helmut Eller @ 2013-11-08 9:07 UTC (permalink / raw)
To: 15833
I updated Emacs sources today like this:
git pull # from git://git.savannah.gnu.org/emacs.git.
make bootstrap
Then I executed
src/emacs -Q -l test/automated/process-tests.el -f ert-run-tests-batch
The sit-for test fails. The contents of the *Messages* buffer is:
Unable to load color "unspecified-fg"
For information about GNU Emacs and the GNU system, type C-h C-a.
Unable to load color "unspecified-fg"
Running 2 tests (2013-11-08 10:00:17+0100)
passed 1/2 process-test-sentinel-accept-process-output
Test process-test-sentinel-sit-for backtrace:
(if (unwind-protect (setq value-13507 (apply fn-13505 args-13506)) (
(let (form-description-13509) (if (unwind-protect (setq value-13507
(let ((value-13507 (quote ert-form-evaluation-aborted-13508))) (let
(let ((fn-13505 (function process-test-sentinel-wait-function-workin
(lambda nil (let ((fn-13505 (function process-test-sentinel-wait-fun
#[0 "\306\307!r\211q\210\310\311\312\313\314\315..!\316\"\317\320%DC
funcall(#[0 "\306\307!r\211q\210\310\311\312\313\314\315..!\316\"\31
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
#[0 "r\304 q\210\305 )\306\307\310\311\312\313..!\314\"\315\316%DC\2
funcall(#[0 "r\304 q\210\305 )\306\307\310\311\312\313..!\314\"\315\
ert-run-test([cl-struct-ert-test process-test-sentinel-sit-for nil (
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306.\307\"\203D.\211\211G\310U\203..\211@\20
ert-run-tests-batch()
command-line-1(("-l" "test/automated/process-tests.el" "-f" "ert-run
command-line()
normal-top-level()
Test process-test-sentinel-sit-for condition:
(ert-test-failed
((should
(process-test-sentinel-wait-function-working-p
(lambda nil ...)))
:form
(process-test-sentinel-wait-function-working-p
(lambda nil
(sit-for 0.01 t)))
:value nil))
Unable to load color "unspecified-fg"
FAILED 2/2 process-test-sentinel-sit-for
Ran 2 tests, 1 results as expected, 1 unexpected (2013-11-08 10:00:19+0100)
1 unexpected results:
FAILED process-test-sentinel-sit-for
And here are some bits from my configuration:
In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2013-11-08 on ix
System Description: Debian GNU/Linux 7.1 (wheezy)
Configured using:
`configure --with-jpeg=no --with-gif=no --with-tiff=no'
Important settings:
value of $LANG: en_US
locale-coding-system: iso-latin-1-unix
default enable-multibyte-characters: t
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#15833: 24.3.50; sit-for and sentinels
2013-11-08 9:07 bug#15833: 24.3.50; sit-for and sentinels Helmut Eller
@ 2013-11-11 5:08 ` Stefan Monnier
2013-11-11 7:41 ` Helmut Eller
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2013-11-11 5:08 UTC (permalink / raw)
To: Helmut Eller; +Cc: 15833
> src/emacs -Q -l test/automated/process-tests.el -f ert-run-tests-batch
> The sit-for test fails. The contents of the *Messages* buffer is:
Hmm... for me if I add "--batch" then both tests succeed, and if
I use the above command as is (i.e.in an X11 Emacs session) then both
tests fail.
So, it might be timing-dependent. E.g. it might depend on whether the
process dies before we get to the wait-function?
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#15833: 24.3.50; sit-for and sentinels
2013-11-11 5:08 ` Stefan Monnier
@ 2013-11-11 7:41 ` Helmut Eller
0 siblings, 0 replies; 3+ messages in thread
From: Helmut Eller @ 2013-11-11 7:41 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 15833
On Mon, Nov 11 2013, Stefan Monnier wrote:
>> src/emacs -Q -l test/automated/process-tests.el -f ert-run-tests-batch
>> The sit-for test fails. The contents of the *Messages* buffer is:
>
> Hmm... for me if I add "--batch" then both tests succeed, and if
> I use the above command as is (i.e.in an X11 Emacs session) then both
> tests fail.
>
> So, it might be timing-dependent. E.g. it might depend on whether the
> process dies before we get to the wait-function?
When I let the process wait a little before exiting, by changing
(start-process "test" nil "bash" "-c" "exit 20")
to
(start-process "test" nil "bash" "-c" "sleep 2; exit 20")
the test still fails; even sometimes, but not always, with --batch.
Helmut
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-11 7:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-08 9:07 bug#15833: 24.3.50; sit-for and sentinels Helmut Eller
2013-11-11 5:08 ` Stefan Monnier
2013-11-11 7:41 ` Helmut Eller
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).