aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2017-05-31 21:17:28 -0400
committerGlenn Morris2017-05-31 21:17:28 -0400
commitafcbec61147fe84504de0d329ce40031fa79075b (patch)
tree6fde89be57d8c561ddee890aee0fa42bd68e134b
parent6aacd4fb09517b0dedf62333f0e27b28e8732f63 (diff)
downloademacs-afcbec61147fe84504de0d329ce40031fa79075b.tar.gz
emacs-afcbec61147fe84504de0d329ce40031fa79075b.zip
Quieten compilation of some test files
* test/lisp/dired-tests.el (dired-test-bug25609): Mark unused args. * test/src/data-tests.el (binding-test-set-constant-t) (binding-test-set-constant-nil, binding-test-set-constant-keyword) (binding-test-set-constant-nil): Silence compiler. * test/src/regex-tests.el (regex-tests-BOOST): Escape char literal.
-rw-r--r--test/lisp/dired-tests.el4
-rw-r--r--test/src/data-tests.el8
-rw-r--r--test/src/regex-tests.el2
3 files changed, 7 insertions, 7 deletions
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index 1863864abdf..1b814baac58 100644
--- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -63,11 +63,11 @@
63 (dired-recursive-copies 'always)) ; Don't prompt me. 63 (dired-recursive-copies 'always)) ; Don't prompt me.
64 (advice-add 'dired-query ; Don't ask confirmation to overwrite a file. 64 (advice-add 'dired-query ; Don't ask confirmation to overwrite a file.
65 :override 65 :override
66 (lambda (sym prompt &rest args) (setq dired-query t)) 66 (lambda (_sym _prompt &rest _args) (setq dired-query t))
67 '((name . "advice-dired-query"))) 67 '((name . "advice-dired-query")))
68 (advice-add 'completing-read ; Just return init. 68 (advice-add 'completing-read ; Just return init.
69 :override 69 :override
70 (lambda (prompt coll &optional pred match init hist def inherit keymap) 70 (lambda (_prompt _coll &optional _pred _match init _hist _def _inherit _keymap)
71 init) 71 init)
72 '((name . "advice-completing-read"))) 72 '((name . "advice-completing-read")))
73 (dired to) 73 (dired to)
diff --git a/test/src/data-tests.el b/test/src/data-tests.el
index 8caafc11c2f..00a30559e32 100644
--- a/test/src/data-tests.el
+++ b/test/src/data-tests.el
@@ -338,19 +338,19 @@ comparing the subr with a much slower lisp implementation."
338 338
339(ert-deftest binding-test-set-constant-t () 339(ert-deftest binding-test-set-constant-t ()
340 "Test setting the constant t" 340 "Test setting the constant t"
341 (should-error (setq t 'bob) :type 'setting-constant)) 341 (with-no-warnings (should-error (setq t 'bob) :type 'setting-constant)))
342 342
343(ert-deftest binding-test-set-constant-nil () 343(ert-deftest binding-test-set-constant-nil ()
344 "Test setting the constant nil" 344 "Test setting the constant nil"
345 (should-error (setq nil 'bob) :type 'setting-constant)) 345 (with-no-warnings (should-error (setq nil 'bob) :type 'setting-constant)))
346 346
347(ert-deftest binding-test-set-constant-keyword () 347(ert-deftest binding-test-set-constant-keyword ()
348 "Test setting a keyword constant" 348 "Test setting a keyword constant"
349 (should-error (setq :keyword 'bob) :type 'setting-constant)) 349 (with-no-warnings (should-error (setq :keyword 'bob) :type 'setting-constant)))
350 350
351(ert-deftest binding-test-set-constant-nil () 351(ert-deftest binding-test-set-constant-nil ()
352 "Test setting a keyword to itself" 352 "Test setting a keyword to itself"
353 (should (setq :keyword :keyword))) 353 (with-no-warnings (should (setq :keyword :keyword))))
354 354
355;; More tests to write - 355;; More tests to write -
356;; kill-local-variable 356;; kill-local-variable
diff --git a/test/src/regex-tests.el b/test/src/regex-tests.el
index db187fd4a6a..1364bf6848a 100644
--- a/test/src/regex-tests.el
+++ b/test/src/regex-tests.el
@@ -424,7 +424,7 @@ differences in behavior.")
424 (let (failures 424 (let (failures
425 basic icase notbol noteol) 425 basic icase notbol noteol)
426 (regex-tests-generic-line 426 (regex-tests-generic-line
427 ?; "BOOST.tests" regex-tests-BOOST-whitelist 427 ?\; "BOOST.tests" regex-tests-BOOST-whitelist
428 (if (save-excursion (re-search-forward "^-" nil t)) 428 (if (save-excursion (re-search-forward "^-" nil t))
429 (setq basic (save-excursion (re-search-forward "REG_BASIC" nil t)) 429 (setq basic (save-excursion (re-search-forward "REG_BASIC" nil t))
430 icase (save-excursion (re-search-forward "REG_ICASE" nil t)) 430 icase (save-excursion (re-search-forward "REG_ICASE" nil t))