1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-30 19:53:09 +00:00

Revert commit 1f44a77672 for XRef.

XRef supports Emacs versions back to Emacs 26.3, so it can’t use newer
functions such as ‘ert-resource-directory’.

* test/lisp/progmodes/xref-tests.el (xref-tests-data-dir): Don’t use
‘ert-resource-directory’
This commit is contained in:
Philipp Stephani 2020-10-25 11:24:11 +01:00
parent 2e090da775
commit e73e7a8bd6

View File

@ -24,11 +24,13 @@
;;; Code:
(require 'ert)
(require 'ert-x)
(require 'xref)
(require 'cl-lib)
(defvar xref-tests-data-dir (ert-resource-directory))
(defvar xref-tests-data-dir
(expand-file-name "xref-resources/"
(file-name-directory
(or load-file-name buffer-file-name))))
(ert-deftest xref-matches-in-directory-finds-none-for-some-regexp ()
(should (null (xref-matches-in-directory "zzz" "*" xref-tests-data-dir nil))))