]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix previous arc-mode-test commit
authorJens Schmidt <jschmidt4gnu@vodafonemail.de>
Thu, 24 Apr 2025 21:32:45 +0000 (23:32 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 27 Apr 2025 13:28:36 +0000 (15:28 +0200)
* test/lisp/arc-mode-tests.el (define-arc-mode-test-on-type): Doc fix.
("7z"): Use archiver executable "7z" on all ports.

(cherry picked from commit ec8075219da2e3cb676d89db58164f54b079b85d)

test/lisp/arc-mode-tests.el

index 51e8a5eba3fc8fef80164214c412fa08ac790837..dd8fdf9e0bc6bcac5419ee60556fd6fe40b0abad 100644 (file)
@@ -79,7 +79,7 @@ Return a cons (ARC . EXIT-STATUS)."
   (cons arc (funcall (archive--act-files command files) arc)))
 
 (defmacro define-arc-mode-test-on-type (name command extension type)
-  "Define and execute a test that tests function `archive-find-type'.
+  "Define a test that tests function `archive-find-type'.
 Name the test based on NAME.  The generated test first calls
 
   (call-process (car COMMAND) nil nil nil
@@ -133,10 +133,9 @@ member MEMBER.  Then the test finds ARCHIVE and ensures that function
 
 (define-arc-mode-test-on-type "ar" '("ar" "q") "a" 'ar)
 
-(define-arc-mode-test-on-type "7z" (list (if (eq system-type 'windows-nt)
-                                             "7z" "7za")
-                                         "a")
-                              "7z" '7z)
+;; prefer executable "7z" to "7za", since the former seems be supported
+;; on a broader range of ports
+(define-arc-mode-test-on-type "7z" '("7z" "a") "7z" '7z)
 
 (ert-deftest arc-mode-test-zip-ensure-ext ()
   "Regression test for bug#61326."