* test/Makefile.in (ELFILES): Exclude the data/ directory.
* test/src/lread-tests.el (lread-test-bug26837): Revert previous.
endif
ELFILES := $(shell find ${srcdir} -path "${srcdir}/manual" -prune -o \
+ -path "${srcdir}/data" -prune -o \
-name "*resources" -prune -o \
${maybe_exclude_module_tests} \
-name "*.el" -print)
(let ((load-path (cons
(file-name-as-directory
(expand-file-name "data" (getenv "EMACS_TEST_DIRECTORY")))
- load-path))
- (fn (lambda (lib)
- (load lib nil t)
- (let ((str (caar load-history)))
- (should (or (string-suffix-p (concat "/" lib ".el") str)
- (string-suffix-p (concat "/" lib ".elc") str)))))))
- (dolist (lib '("somelib" "somelib2" "somelib"))
- (funcall fn lib))))
+ load-path)))
+ (load "somelib" nil t)
+ (should (string-suffix-p "/somelib.el" (caar load-history)))
+ (load "somelib2" nil t)
+ (should (string-suffix-p "/somelib2.el" (caar load-history)))
+ (load "somelib" nil t)
+ (should (string-suffix-p "/somelib.el" (caar load-history)))))
;;; lread-tests.el ends here