GNU bug report logs - #23954
25.1.50; Unexpected failing test

Previous Next

Package: emacs;

Reported by: Tino Calancha <tino.calancha <at> gmail.com>

Date: Tue, 12 Jul 2016 15:35:02 UTC

Severity: normal

Found in version 25.1.50

Done: Tino Calancha <tino.calancha <at> gmail.com>

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 23954 in the body.
You can then email your comments to 23954 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23954; Package emacs. (Tue, 12 Jul 2016 15:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tino Calancha <tino.calancha <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 12 Jul 2016 15:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tino Calancha <tino.calancha <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.50; Unexpected failing test
Date: Wed, 13 Jul 2016 00:34:32 +0900 (JST)
The test 'erc-track--erc-faces-in' always fails but is not tagged
as failed.

While running the test 'char-property-alias-alist' is nil,
so that 'face cannot be translated to 'font-lock-face in the
call to 'erc-faces-in'.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
From c1ebac5d441de3154d3f786d1fff54d6c3acf9f7 Mon Sep 17 00:00:00 2001
From: Tino Calancha <tino.calancha <at> gmail.com>
Date: Wed, 13 Jul 2016 00:26:04 +0900
Subject: [PATCH] Fix unexpected failing test

* test/lisp/erc/erc-track-tests.el (erc-track--erc-faces-in):
Initialize 'char-property-alias-alist' (Bug#xxxxxx).
---
 test/lisp/erc/erc-track-tests.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/lisp/erc/erc-track-tests.el 
b/test/lisp/erc/erc-track-tests.el
index 24dfcfb..641b307 100644
--- a/test/lisp/erc/erc-track-tests.el
+++ b/test/lisp/erc/erc-track-tests.el
@@ -108,8 +108,7 @@
   "`erc-faces-in' should pick up both 'face and 'font-lock-face 
properties."
   (let ((str0 "is bold")
         (str1 "is bold")
-        ;;(char-property-alias-alist '((face font-lock-face)))
-        )
+        (char-property-alias-alist '((face font-lock-face))))
     (put-text-property 3 (length str0) 'font-lock-face
                        '(bold erc-current-nick-face) str0)
     (put-text-property 3 (length str1) 'face
-- 
2.8.1



GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.20.6)
of 2016-07-12
Repository revision: 5155144bd4cece3bab200a0eb613ffcdef523202





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23954; Package emacs. (Wed, 13 Jul 2016 17:12:02 GMT) Full text and rfc822 format available.

Message #8 received at 23954 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: 23954 <at> debbugs.gnu.org
Subject: Re: bug#23954: 25.1.50; Unexpected failing test
Date: Wed, 13 Jul 2016 13:11:41 -0400
Tino Calancha wrote:

> The test 'erc-track--erc-faces-in' always fails but is not tagged
> as failed.

I don't know what you mean by "not tagged as failed".
It's been failing since 1efb20803.

http://hydra.nixos.org/build/37443517
http://lists.gnu.org/archive/html/emacs-buildstatus/2016-07/msg00009.html

> While running the test 'char-property-alias-alist' is nil,
> so that 'face cannot be translated to 'font-lock-face in the
> call to 'erc-faces-in'.

Yet somehow it seemed to work from compiled code...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23954; Package emacs. (Thu, 21 Jul 2016 12:03:02 GMT) Full text and rfc822 format available.

Message #11 received at 23954 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: 23954 <at> debbugs.gnu.org
Subject: Re: bug#23954: 25.1.50; Unexpected failing test
Date: Thu, 21 Jul 2016 08:02:44 -0400
It's bad to have persistently failing tests, because it can mask new failures.
(eg several xref tests started failing in
http://hydra.nixos.org/build/37558515, but there was no notification
email due to this pre-existing failure.)

So please consider applying your change to fix this.
I see it is similar to what turn-on-font-lock does, so if explicitly
turning on font-lock in this test also fixes it, that might be better.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23954; Package emacs. (Thu, 21 Jul 2016 12:38:02 GMT) Full text and rfc822 format available.

Message #14 received at 23954 <at> debbugs.gnu.org (full text, mbox):

From: Tino Calancha <tino.calancha <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23954 <at> debbugs.gnu.org, Tino Calancha <tino.calancha <at> gmail.com>
Subject: Re: bug#23954: 25.1.50; Unexpected failing test
Date: Thu, 21 Jul 2016 21:37:04 +0900 (JST)

On Wed, 13 Jul 2016, Glenn Morris wrote:

> Tino Calancha wrote:
>
>> The test 'erc-track--erc-faces-in' always fails but is not tagged
>> as failed.
Sorry.  I meant with that sentence that the test don't include 
':expected-result :failed'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23954; Package emacs. (Thu, 21 Jul 2016 12:43:02 GMT) Full text and rfc822 format available.

Message #17 received at 23954 <at> debbugs.gnu.org (full text, mbox):

From: Tino Calancha <tino.calancha <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23954 <at> debbugs.gnu.org, Tino Calancha <tino.calancha <at> gmail.com>
Subject: Re: bug#23954: 25.1.50; Unexpected failing test
Date: Thu, 21 Jul 2016 21:42:40 +0900 (JST)

On Thu, 21 Jul 2016, Glenn Morris wrote:

>
> It's bad to have persistently failing tests, because it can mask new failures.
> (eg several xref tests started failing in
> http://hydra.nixos.org/build/37558515, but there was no notification
> email due to this pre-existing failure.)
>
> So please consider applying your change to fix this.
Thanks for the replay.
> I see it is similar to what turn-on-font-lock does, so if explicitly
> turning on font-lock in this test also fixes it, that might be better.
Yeah, for our purposes it is the same: set `char-property-alias-alist'
to '((face font-lock-face)).

I am going to apply following patch:

diff --git a/test/lisp/erc/erc-track-tests.el 
b/test/lisp/erc/erc-track-tests.el
index 24dfcfb..7cf3ef7 100644
--- a/test/lisp/erc/erc-track-tests.el
+++ b/test/lisp/erc/erc-track-tests.el
@@ -24,6 +24,7 @@

 (require 'ert)
 (require 'erc-track)
+(require 'font-core)

 (ert-deftest erc-track--shorten-aggressive-nil ()
   "Test non-aggressive erc track buffer name shortening."
@@ -107,9 +108,12 @@
 (ert-deftest erc-track--erc-faces-in ()
   "`erc-faces-in' should pick up both 'face and 'font-lock-face 
properties."
   (let ((str0 "is bold")
-        (str1 "is bold")
-        ;;(char-property-alias-alist '((face font-lock-face)))
-        )
+        (str1 "is bold"))
+    ;; Turn on Font Lock mode: this initialize 
`char-property-alias-alist'
+    ;; to '((face font-lock-face)).  Note that `font-lock-mode' don't
+    ;; turn on the mode if the test is run on batch mode or if the
+    ;; buffer name starts with ?\s (Bug#23954).
+    (unless font-lock-mode (font-lock-default-function 1))
     (put-text-property 3 (length str0) 'font-lock-face
                        '(bold erc-current-nick-face) str0)
     (put-text-property 3 (length str1) 'face





Reply sent to Tino Calancha <tino.calancha <at> gmail.com>:
You have taken responsibility. (Thu, 21 Jul 2016 13:00:02 GMT) Full text and rfc822 format available.

Notification sent to Tino Calancha <tino.calancha <at> gmail.com>:
bug acknowledged by developer. (Thu, 21 Jul 2016 13:00:03 GMT) Full text and rfc822 format available.

Message #22 received at 23954-done <at> debbugs.gnu.org (full text, mbox):

From: Tino Calancha <tino.calancha <at> gmail.com>
To: 23954-done <at> debbugs.gnu.org
Date: Thu, 21 Jul 2016 21:59:07 +0900 (JST)
Fixed in master branch




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 19 Aug 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.