emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 33fae4b02d6: Suggest alternative reason for ERT test duplicatio


From: Eli Zaretskii
Subject: emacs-29 33fae4b02d6: Suggest alternative reason for ERT test duplication error
Date: Sat, 4 Nov 2023 04:51:19 -0400 (EDT)

branch: emacs-29
commit 33fae4b02d6ed86487ddd0e75f2b3f5e87f6e137
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Suggest alternative reason for ERT test duplication error
    
    * lisp/emacs-lisp/ert.el (ert-set-test): Amend error message;
    maybe the redefinition was caused by a file loaded twice.
    (Bug#66782)
    
    Suggested by Xiyue Deng.
    
    (cherry picked from commit 425d23fbeaede81ab4f50b4073949cc1c8a3fbd0)
---
 lisp/emacs-lisp/ert.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index be9f013ebcf..5d001307125 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -151,7 +151,7 @@ mode.")
   (when (and noninteractive (get symbol 'ert--test))
     ;; Make sure duplicated tests are discovered since the older test would
     ;; be ignored silently otherwise.
-    (error "Test `%s' redefined" symbol))
+    (error "Test `%s' redefined (or loaded twice)" symbol))
   (define-symbol-prop symbol 'ert--test definition)
   definition)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]