diff options
| author | Jim Porter | 2022-02-02 18:26:50 -0800 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-02-03 20:02:24 +0100 |
| commit | e3516ec28f9a3fc81bffcf2d64a0d9e883a0ff26 (patch) | |
| tree | 0634cf1b3a0aef29083b31c956074e57f6a5d353 /test/lisp/eshell/eshell-tests.el | |
| parent | 3a388ab4a604f868ab2c1f9b3c63a7f7a3221f7f (diff) | |
| download | emacs-e3516ec28f9a3fc81bffcf2d64a0d9e883a0ff26.tar.gz emacs-e3516ec28f9a3fc81bffcf2d64a0d9e883a0ff26.zip | |
Use 'require' to load eshell-tests-helpers
* test/lisp/eshell/eshell-tests.el
* test/lisp/eshell/em-extpipe-tests.el: Load eshell-tests-helpers with
'require'.
* test/lisp/eshell/eshell-tests-helpers.el (eshell-history-file-name):
Define this here so individual test files don't have to.
Diffstat (limited to 'test/lisp/eshell/eshell-tests.el')
| -rw-r--r-- | test/lisp/eshell/eshell-tests.el | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/test/lisp/eshell/eshell-tests.el b/test/lisp/eshell/eshell-tests.el index 3b1bbe7188b..c5ca0a54852 100644 --- a/test/lisp/eshell/eshell-tests.el +++ b/test/lisp/eshell/eshell-tests.el | |||
| @@ -29,16 +29,10 @@ | |||
| 29 | (require 'ert-x) | 29 | (require 'ert-x) |
| 30 | (require 'esh-mode) | 30 | (require 'esh-mode) |
| 31 | (require 'eshell) | 31 | (require 'eshell) |
| 32 | (eval-and-compile | 32 | (require 'eshell-tests-helpers |
| 33 | (load (expand-file-name "eshell-tests-helpers" | 33 | (expand-file-name "eshell-tests-helpers" |
| 34 | (file-name-directory (or load-file-name | 34 | (file-name-directory (or load-file-name |
| 35 | default-directory))))) | 35 | default-directory)))) |
| 36 | |||
| 37 | (defvar eshell-history-file-name) | ||
| 38 | (defvar eshell-test--max-subprocess-time) | ||
| 39 | (declare-function eshell-insert-command "eshell-tests-helpers") | ||
| 40 | (declare-function eshell-match-result "eshell-tests-helpers") | ||
| 41 | (declare-function eshell-command-result-p "eshell-tests-helpers") | ||
| 42 | 36 | ||
| 43 | ;;; Tests: | 37 | ;;; Tests: |
| 44 | 38 | ||