aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2020-09-26 11:34:20 +0200
committerStefan Kangas2020-09-26 12:03:07 +0200
commite00936bf9f10cf44e1df71a7a11afd770e8a122a (patch)
tree04735ea688f4b36a8ec814c9949287ad6ffde98a
parent2dff3ea073c4118d79308178dcb3bd7bb1bb8237 (diff)
downloademacs-e00936bf9f10cf44e1df71a7a11afd770e8a122a.tar.gz
emacs-e00936bf9f10cf44e1df71a7a11afd770e8a122a.zip
Silence some byte-compiler warnings
* test/lisp/arc-mode-tests.el (arc-mode-test-archive-int-to-mode): * test/lisp/custom-tests.el (cus-test-opts): * test/lisp/help-fns-tests.el (foo-test-map) (help-fns-test--describe-keymap-foo): * test/src/fns-tests.el (w32-collate-ignore-punctuation) (fns-tests-func-arity): Silence byte-compiler warnings.
-rw-r--r--test/lisp/arc-mode-tests.el2
-rw-r--r--test/lisp/custom-tests.el2
-rw-r--r--test/lisp/help-fns-tests.el3
-rw-r--r--test/src/fns-tests.el8
4 files changed, 11 insertions, 4 deletions
diff --git a/test/lisp/arc-mode-tests.el b/test/lisp/arc-mode-tests.el
index 22ca7e2ec55..e92a4d28c6f 100644
--- a/test/lisp/arc-mode-tests.el
+++ b/test/lisp/arc-mode-tests.el
@@ -32,7 +32,7 @@
32 (cons 1024 "------S---") ; Bug#28092 32 (cons 1024 "------S---") ; Bug#28092
33 (cons 2048 "---S------")))) 33 (cons 2048 "---S------"))))
34 (dolist (x alist) 34 (dolist (x alist)
35 (should (equal (cdr x) (archive-int-to-mode (car x))))))) 35 (should (equal (cdr x) (file-modes-number-to-symbolic (car x)))))))
36 36
37(ert-deftest arc-mode-test-zip-extract-gz () 37(ert-deftest arc-mode-test-zip-extract-gz ()
38 (skip-unless (and archive-zip-extract (executable-find (car archive-zip-extract)))) 38 (skip-unless (and archive-zip-extract (executable-find (car archive-zip-extract))))
diff --git a/test/lisp/custom-tests.el b/test/lisp/custom-tests.el
index 07f626fd65c..76661dc13b8 100644
--- a/test/lisp/custom-tests.el
+++ b/test/lisp/custom-tests.el
@@ -150,6 +150,8 @@
150(defconst custom-test-admin-cus-test 150(defconst custom-test-admin-cus-test
151 (expand-file-name "admin/cus-test.el" source-directory)) 151 (expand-file-name "admin/cus-test.el" source-directory))
152 152
153(declare-function cus-test-opts custom-test-admin-cus-test)
154
153(ert-deftest check-for-wrong-custom-types () 155(ert-deftest check-for-wrong-custom-types ()
154 :tags '(:expensive-test) 156 :tags '(:expensive-test)
155 (skip-unless (file-readable-p custom-test-admin-cus-test)) 157 (skip-unless (file-readable-p custom-test-admin-cus-test))
diff --git a/test/lisp/help-fns-tests.el b/test/lisp/help-fns-tests.el
index da2b49e6b84..811b3677910 100644
--- a/test/lisp/help-fns-tests.el
+++ b/test/lisp/help-fns-tests.el
@@ -123,6 +123,9 @@ Return first line of the output of (describe-function-1 FUNC)."
123 (goto-char (point-min)) 123 (goto-char (point-min))
124 (should (looking-at "^font-lock-comment-face is ")))) 124 (should (looking-at "^font-lock-comment-face is "))))
125 125
126(defvar foo-test-map)
127(defvar help-fns-test--describe-keymap-foo)
128
126 129
127;;; Tests for describe-keymap 130;;; Tests for describe-keymap
128(ert-deftest help-fns-test-find-keymap-name () 131(ert-deftest help-fns-test-find-keymap-name ()
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el
index 323743d8420..f2e1a268b08 100644
--- a/test/src/fns-tests.el
+++ b/test/src/fns-tests.el
@@ -166,6 +166,8 @@
166 (should (equal (should-error (sort "cba" #'<) :type 'wrong-type-argument) 166 (should (equal (should-error (sort "cba" #'<) :type 'wrong-type-argument)
167 '(wrong-type-argument list-or-vector-p "cba")))) 167 '(wrong-type-argument list-or-vector-p "cba"))))
168 168
169(defvar w32-collate-ignore-punctuation)
170
169(ert-deftest fns-tests-collate-sort () 171(ert-deftest fns-tests-collate-sort ()
170 (skip-unless (fns-tests--collate-enabled-p)) 172 (skip-unless (fns-tests--collate-enabled-p))
171 173
@@ -228,9 +230,9 @@
228 (should (equal (func-arity 'format) '(1 . many))) 230 (should (equal (func-arity 'format) '(1 . many)))
229 (require 'info) 231 (require 'info)
230 (should (equal (func-arity 'Info-goto-node) '(1 . 3))) 232 (should (equal (func-arity 'Info-goto-node) '(1 . 3)))
231 (should (equal (func-arity (lambda (&rest x))) '(0 . many))) 233 (should (equal (func-arity (lambda (&rest _x))) '(0 . many)))
232 (should (equal (func-arity (eval '(lambda (x &optional y)) nil)) '(1 . 2))) 234 (should (equal (func-arity (eval '(lambda (_x &optional y)) nil)) '(1 . 2)))
233 (should (equal (func-arity (eval '(lambda (x &optional y)) t)) '(1 . 2))) 235 (should (equal (func-arity (eval '(lambda (_x &optional y)) t)) '(1 . 2)))
234 (should (equal (func-arity 'let) '(1 . unevalled)))) 236 (should (equal (func-arity 'let) '(1 . unevalled))))
235 237
236(defun fns-tests--string-repeat (s o) 238(defun fns-tests--string-repeat (s o)