]> git.eshelyaron.com Git - emacs.git/commitdiff
Skip tramp-test10-write-region-file-precious-flag for Emacs < 27
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 8 May 2019 07:44:22 +0000 (09:44 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 8 May 2019 07:44:22 +0000 (09:44 +0200)
* test/lisp/net/tramp-tests.el
(tramp-test10-write-region-file-precious-flag): Skip for Emacs < 27.

test/lisp/net/tramp-tests.el

index e35be0e3121de56868ee47aa51590b6ca83b81fe..cce4d4e289b0e40ea92a34b04ed7aada61790855 100644 (file)
@@ -2271,10 +2271,13 @@ This checks also `file-name-as-directory', `file-name-directory',
        ;; Cleanup.
        (ignore-errors (delete-file tmp-name))))))
 
+;; The following test is inspired by Bug#35497.
 (ert-deftest tramp-test10-write-region-file-precious-flag ()
   "Check that `file-precious-flag' is respected with Tramp in use."
   (skip-unless (tramp--test-enabled))
   (skip-unless (tramp--test-sh-p))
+  ;; The bug is fixed in Emacs 27.1.
+  (skip-unless (tramp--test-emacs27-p))
 
   (let* ((tmp-name (tramp--test-make-temp-name))
          written-files