* test/automated/elisp-mode-test.el: Silence some run-time warnings

(xref-elisp-deftest): Bind `find-file-suppress-same-file-warnings' to t.
This commit is contained in:
Juanma Barranquero 2015-11-05 22:47:52 +01:00
parent ddb8069d9b
commit 7afaf0c0de

View file

@ -208,8 +208,9 @@ to (xref-elisp-test-descr-to-target xref)."
(declare (indent defun)
(debug (symbolp "name")))
`(ert-deftest ,(intern (concat "xref-elisp-test-" (symbol-name name))) ()
(xref-elisp-test-run ,computed-xrefs ,expected-xrefs)
))
(let ((find-file-suppress-same-file-warnings t))
(xref-elisp-test-run ,computed-xrefs ,expected-xrefs)
)))
;; When tests are run from the Makefile, 'default-directory' is $HOME,
;; so we must provide this dir to expand-file-name in the expected