summaryrefslogtreecommitdiff
path: root/test/lisp/custom-tests.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-08-20 02:32:02 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-08-20 02:32:02 +0200
commitf804248b4fd5245443e3ace916d1b96261ca4ce0 (patch)
treee19822027c4a1a0c096e0f0b31fc7bb3f891b6eb /test/lisp/custom-tests.el
parentfb81c8c3adf8633f2f617c82f6019aef630860c7 (diff)
downloademacs-f804248b4fd5245443e3ace916d1b96261ca4ce0.tar.gz
Tweak a failing custom test
* test/lisp/custom-tests.el (custom-tests-require-theme): Fix a native-comp-related test failure. In this test, we set load-path to nil, and under native-comp some of the tests want to give a warning: Warning (comp): Cannot look-up eln file as no source file was found for /tmp/custom-tests-bfdbkW/custom-tests--d.elc But we can't load warning.el after setting load-path to nil, so require it first.
Diffstat (limited to 'test/lisp/custom-tests.el')
-rw-r--r--test/lisp/custom-tests.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/custom-tests.el b/test/lisp/custom-tests.el
index e93c96e1d93..f4c43b0a148 100644
--- a/test/lisp/custom-tests.el
+++ b/test/lisp/custom-tests.el
@@ -96,6 +96,7 @@ Ensure the directory is recursively deleted after the fact."
(ert-deftest custom-tests-require-theme ()
"Test `require-theme'."
+ (require 'warnings)
(custom-tests--with-temp-dir
(let* ((default-directory temporary-file-directory)
(custom-theme-load-path (list default-directory))