summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2022-04-17 21:51:17 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-17 21:51:17 +0200
commit1dd8a003253db74ccb724b5f0573fb2005fac07c (patch)
tree8cb674987dd5d20d777181e987c6f9de8a5b2f5a
parentc5253aa01eef0f080fdfa53e4b0ada20a6782e53 (diff)
downloademacs-1dd8a003253db74ccb724b5f0573fb2005fac07c.tar.gz
emacs-1dd8a003253db74ccb724b5f0573fb2005fac07c.tar.bz2
emacs-1dd8a003253db74ccb724b5f0573fb2005fac07c.zip
Fix Eshell predicate tests when running from 'make check'
* test/lisp/eshell/em-pred-tests.el (eshell-partial-let-func): Get original function after macro-expansion.
-rw-r--r--test/lisp/eshell/em-pred-tests.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lisp/eshell/em-pred-tests.el b/test/lisp/eshell/em-pred-tests.el
index fbf8945215e..7f88ac44755 100644
--- a/test/lisp/eshell/em-pred-tests.el
+++ b/test/lisp/eshell/em-pred-tests.el
@@ -95,13 +95,13 @@ behavior for real files.
`(cl-letf
,(mapcar
(lambda (override)
- (let ((orig-function (symbol-function (car override))))
- `((symbol-function #',(car override))
+ `((symbol-function #',(car override))
+ (let ((orig-function (symbol-function #',(car override))))
(lambda (file &rest rest)
(apply
(if (and (stringp file) (string-prefix-p "/fake/" file))
,(cadr override)
- ,orig-function)
+ orig-function)
file rest)))))
overrides)
,@body))