]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve Tramp tests backward compatibility
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 4 Feb 2022 18:24:43 +0000 (19:24 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 4 Feb 2022 18:24:43 +0000 (19:24 +0100)
* test/lisp/net/tramp-tests.el (tramp-test39-detect-external-change):
Improve backward compatibility.

test/lisp/net/tramp-tests.el

index b41824a6cf3b34f0ffce5d6c891f59c216250abf..9be1985780d96f5436375e5c46f198ac343194a4 100644 (file)
@@ -6018,13 +6018,13 @@ Use direct async.")
        (ignore-errors (delete-file tmp-name1))
        (tramp-cleanup-connection tramp-test-vec 'keep-debug 'keep-password)))))
 
-;; The function was introduced in Emacs 28.1.
+;; The functions were introduced in Emacs 28.1.
 (ert-deftest tramp-test39-detect-external-change ()
   "Check that an external file modification is reported."
   (skip-unless (tramp--test-enabled))
   (skip-unless (not (tramp--test-ange-ftp-p)))
   ;; Since Emacs 28.1.
-  (skip-unless (fboundp 'file-locked-p))
+  (skip-unless (and (fboundp 'lock-file) (fboundp 'file-locked-p)))
 
   (dolist (quoted (if (tramp--test-expensive-test-p) '(nil t) '(nil)))
     (dolist (create-lockfiles '(nil t))