summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-12-08 16:22:24 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2021-12-08 16:22:24 -0500
commit3a0e0187b711db69df48e16b35a577f046cf38b1 (patch)
tree428abc9f8271514e9680b6d8663138149be610a0 /test
parentaa3434369e0b9aeb15e5802a5e2cee598e6c01e2 (diff)
downloademacs-3a0e0187b711db69df48e16b35a577f046cf38b1.tar.gz
* test/lisp/emacs-lisp/cl-macs-tests.el: Avoid `with-suppressed-warnings`
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--progv): Use a proper namespace prefix for the global vars.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/cl-macs-tests.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lisp/emacs-lisp/cl-macs-tests.el b/test/lisp/emacs-lisp/cl-macs-tests.el
index 7c3afefaadd..13da60ec45e 100644
--- a/test/lisp/emacs-lisp/cl-macs-tests.el
+++ b/test/lisp/emacs-lisp/cl-macs-tests.el
@@ -668,13 +668,13 @@ collection clause."
#'len))
(`(function (lambda (,_ ,_) . ,_)) t))))
-(with-suppressed-warnings ((lexical test) (lexical test1) (lexical test2))
- (defvar test)
- (defvar test1)
- (defvar test2))
(ert-deftest cl-macs--progv ()
- (should (= (cl-progv '(test test) '(1 2) test) 2))
- (should (equal (cl-progv '(test1 test2) '(1 2) (list test1 test2))
+ (defvar cl-macs--test)
+ (defvar cl-macs--test1)
+ (defvar cl-macs--test2)
+ (should (= (cl-progv '(cl-macs--test cl-macs--test) '(1 2) cl-macs--test) 2))
+ (should (equal (cl-progv '(cl-macs--test1 cl-macs--test2) '(1 2)
+ (list cl-macs--test1 cl-macs--test2))
'(1 2))))
;;; cl-macs-tests.el ends here