From: Tassilo Horn <tsdh@gnu.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: 25.0.50.1, ert: (should (bolp)) fails in batch-mode
Date: Sat, 19 Sep 2015 09:27:32 +0200 [thread overview]
Message-ID: <87mvwi7tsr.fsf@gnu.org> (raw)
In-Reply-To: <55FD0265.8080102@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Sat, 19 Sep 2015 08:36:21 +0200")
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>>> In this case position is at BOL, why (bolp) fails from batch-mode?
>>> Test succeeds when called interactively.
>> Can you show a test case for that?
>>
>>
>
> It's here:
>
> https://travis-ci.org/emacs-berlin/general-close/builds
>
> For now the failing commit is that before the last one.
This is no test case, it is a build report which also links to you tests
but those are not easily understandable.
Can you provide some minimal and isolated test case which shows the
problem? Something like:
--8<---------------cut here---------------start------------->8---
(ert-deftest test-bolp ()
(with-current-buffer (get-buffer "*scratch*")
(goto-char (point-min))
(should (bolp))
(while (not (= 1 (forward-line 1)))
(should (bolp)))
(while (not (= -1 (forward-line -1)))
(should (bolp)))))
--8<---------------cut here---------------end--------------->8---
That succeeds interactively and also in batch-mode.
I guess the problem in your setting is that it depends on your
customization if you end up at BOL in your tests. Do your tests also
fail in an interactive session with emacs -Q?
Bye,
Tassilo
next prev parent reply other threads:[~2015-09-19 7:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 10:35 25.0.50.1, ert: (should (bolp)) fails in batch-mode Andreas Röhler
2015-09-18 11:10 ` Nicolas Richard
2015-09-18 13:51 ` Andreas Röhler
2015-09-18 14:09 ` Eli Zaretskii
2015-09-19 6:36 ` Andreas Röhler
2015-09-19 7:27 ` Tassilo Horn [this message]
2015-09-19 7:28 ` Eli Zaretskii
2015-09-19 11:08 ` Andreas Röhler
2015-09-19 20:08 ` Stefan Monnier
2015-09-20 8:21 ` Andreas Röhler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mvwi7tsr.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.