]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix out-of-tree make check
authorGlenn Morris <rgm@gnu.org>
Fri, 25 Sep 2020 18:01:14 +0000 (11:01 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 25 Sep 2020 18:01:14 +0000 (11:01 -0700)
* test/lisp/custom-tests.el (custom-test-admin-cus-test): New const.
(check-for-wrong-custom-types): Use it.

test/lisp/custom-tests.el

index d94527b558fbd2b38a5ac15671ddaa26ca9bca94..07f626fd65cb9f5902dbece592d27723befb88eb 100644 (file)
                                (widget-apply field :value-to-internal origvalue)
                                "bar"))))))
 
+(defconst custom-test-admin-cus-test
+  (expand-file-name "admin/cus-test.el" source-directory))
+
 (ert-deftest check-for-wrong-custom-types ()
   :tags '(:expensive-test)
-  (load (concat installation-directory "admin/cus-test.el"))
+  (skip-unless (file-readable-p custom-test-admin-cus-test))
+  (load custom-test-admin-cus-test)
   (should (null (cus-test-opts t))))
 
 ;;; custom-tests.el ends here