GNU bug report logs -
#15833
24.3.50; sit-for and sentinels
Previous Next
Reported by: Helmut Eller <eller.helmut <at> gmail.com>
Date: Fri, 8 Nov 2013 09:09:02 UTC
Severity: normal
Found in version 24.3.50
Fixed in version 24.5
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15833 in the body.
You can then email your comments to 15833 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15833
; Package
emacs
.
(Fri, 08 Nov 2013 09:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 08 Nov 2013 09:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15833
; Package
emacs
.
(Mon, 11 Nov 2013 05:09:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 15833 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15833
; Package
emacs
.
(Mon, 11 Nov 2013 07:42:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 15833 <at> debbugs.gnu.org (full text, mbox):
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
Reply sent
to
Noam Postavsky <npostavs <at> users.sourceforge.net>
:
You have taken responsibility.
(Wed, 08 Jun 2016 04:07:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Helmut Eller <eller.helmut <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 08 Jun 2016 04:07:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 15833-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.5
Seem to be fixed in 24.5
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 06 Jul 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 351 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.