diff options
| author | Jens Schmidt | 2025-04-24 23:32:45 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-26 17:09:00 +0300 |
| commit | ec8075219da2e3cb676d89db58164f54b079b85d (patch) | |
| tree | 47931a4c33cdb3acf11c098b2e1c7aa7fb1c456e | |
| parent | af22c9292df85df9421ef11cadccb656a4bf3d7f (diff) | |
| download | emacs-ec8075219da2e3cb676d89db58164f54b079b85d.tar.gz emacs-ec8075219da2e3cb676d89db58164f54b079b85d.zip | |
; Fix previous arc-mode-test commit
* test/lisp/arc-mode-tests.el (define-arc-mode-test-on-type): Doc fix.
("7z"): Use archiver executable "7z" on all ports.
| -rw-r--r-- | test/lisp/arc-mode-tests.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/lisp/arc-mode-tests.el b/test/lisp/arc-mode-tests.el index 51e8a5eba3f..dd8fdf9e0bc 100644 --- a/test/lisp/arc-mode-tests.el +++ b/test/lisp/arc-mode-tests.el | |||
| @@ -79,7 +79,7 @@ Return a cons (ARC . EXIT-STATUS)." | |||
| 79 | (cons arc (funcall (archive--act-files command files) arc))) | 79 | (cons arc (funcall (archive--act-files command files) arc))) |
| 80 | 80 | ||
| 81 | (defmacro define-arc-mode-test-on-type (name command extension type) | 81 | (defmacro define-arc-mode-test-on-type (name command extension type) |
| 82 | "Define and execute a test that tests function `archive-find-type'. | 82 | "Define a test that tests function `archive-find-type'. |
| 83 | Name the test based on NAME. The generated test first calls | 83 | Name the test based on NAME. The generated test first calls |
| 84 | 84 | ||
| 85 | (call-process (car COMMAND) nil nil nil | 85 | (call-process (car COMMAND) nil nil nil |
| @@ -133,10 +133,9 @@ member MEMBER. Then the test finds ARCHIVE and ensures that function | |||
| 133 | 133 | ||
| 134 | (define-arc-mode-test-on-type "ar" '("ar" "q") "a" 'ar) | 134 | (define-arc-mode-test-on-type "ar" '("ar" "q") "a" 'ar) |
| 135 | 135 | ||
| 136 | (define-arc-mode-test-on-type "7z" (list (if (eq system-type 'windows-nt) | 136 | ;; prefer executable "7z" to "7za", since the former seems be supported |
| 137 | "7z" "7za") | 137 | ;; on a broader range of ports |
| 138 | "a") | 138 | (define-arc-mode-test-on-type "7z" '("7z" "a") "7z" '7z) |
| 139 | "7z" '7z) | ||
| 140 | 139 | ||
| 141 | (ert-deftest arc-mode-test-zip-ensure-ext () | 140 | (ert-deftest arc-mode-test-zip-ensure-ext () |
| 142 | "Regression test for bug#61326." | 141 | "Regression test for bug#61326." |