summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/ert.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index be9f013ebcf..cd4b9c5a2b3 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -1540,7 +1540,9 @@ the tests)."
(or noninteractive
(user-error "This function is only for use in batch mode"))
(let ((eln-dir (and (featurep 'native-compile)
- (make-temp-file "test-nativecomp-cache-" t))))
+ (make-temp-file "test-nativecomp-cache-" t)))
+ ;; Don't ever wait for user input.
+ (inhibit-interaction t))
(when eln-dir
(startup-redirect-eln-cache eln-dir))
;; Better crash loudly than attempting to recover from undefined