From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: 25.0.50.1, ert: (should (bolp)) fails in batch-mode Date: Sat, 19 Sep 2015 09:27:32 +0200 Message-ID: <87mvwi7tsr.fsf@gnu.org> References: <55FBE8DB.2020707@easy-emacs.de> <87si6c6l09.fsf@members.fsf.org> <55FC16CF.90401@easy-emacs.de> <83bnczrf82.fsf@gnu.org> <55FD0265.8080102@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1442647752 28333 80.91.229.3 (19 Sep 2015 07:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Sep 2015 07:29:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 19 09:29:02 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZdCZy-0002TE-28 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2015 09:29:02 +0200 Original-Received: from localhost ([::1]:44224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdCZx-00080o-9G for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2015 03:29:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdCYd-0006Q2-Ix for help-gnu-emacs@gnu.org; Sat, 19 Sep 2015 03:27:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdCYa-0006u1-BX for help-gnu-emacs@gnu.org; Sat, 19 Sep 2015 03:27:39 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdCYa-0006to-7J for help-gnu-emacs@gnu.org; Sat, 19 Sep 2015 03:27:36 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0BB4220216 for ; Sat, 19 Sep 2015 03:27:36 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 19 Sep 2015 03:27:36 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=K7ZWn3BNAL405ej zATirIO0nJsk=; b=piTYqsHvIGONyPUwgbC67DXf7PYdn2uuGrRzZt/mR+Gp9xK mDT0uE7OCQFX4dRir4FcMcmtF2hWeovcAPg0bkytQe2GgGSEWHMTKZlRu1Hv6AwQ JbONMXgXMm9pVlW2JsmeWf9rHmr6qxDxoRWJhkLWCj7HltuEHaygcYboCGnw= X-Sasl-enc: N1RDMoCaYbGrWnDwPLcDeJeIT5R97yl3J8c2Exg2+ttU 1442647655 Original-Received: from thinkpad-t440p (unknown [2.161.228.59]) by mail.messagingengine.com (Postfix) with ESMTPA id 1C41E68012F; Sat, 19 Sep 2015 03:27:34 -0400 (EDT) Mail-Followup-To: Andreas =?utf-8?Q?R=C3=B6hler?= , help-gnu-emacs@gnu.org 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") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107247 Archived-At: Andreas R=C3=B6hler 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 (=3D 1 (forward-line 1))) (should (bolp))) (while (not (=3D -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