summaryrefslogtreecommitdiff
path: root/test/lisp/custom-tests.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2020-09-25 11:01:14 -0700
committerGlenn Morris <rgm@gnu.org>2020-09-25 11:01:14 -0700
commitd58e3b3997228423b81df49035bd584fa1918f13 (patch)
treeda25748a3e6035913e8d3a280257e6cf9c36500c /test/lisp/custom-tests.el
parent3a3226716b84c29c7eee9e19054ffe7618bd334c (diff)
downloademacs-d58e3b3997228423b81df49035bd584fa1918f13.tar.gz
Fix out-of-tree make check
* test/lisp/custom-tests.el (custom-test-admin-cus-test): New const. (check-for-wrong-custom-types): Use it.
Diffstat (limited to 'test/lisp/custom-tests.el')
-rw-r--r--test/lisp/custom-tests.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lisp/custom-tests.el b/test/lisp/custom-tests.el
index d94527b558f..07f626fd65c 100644
--- a/test/lisp/custom-tests.el
+++ b/test/lisp/custom-tests.el
@@ -147,9 +147,13 @@
(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