From: Michael Albinus Date: Wed, 8 May 2019 07:44:22 +0000 (+0200) Subject: Skip tramp-test10-write-region-file-precious-flag for Emacs < 27 X-Git-Tag: emacs-27.0.90~2943 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=173fd94c11655bde2edf4cd1ee983e025aa06a79;p=emacs.git Skip tramp-test10-write-region-file-precious-flag for Emacs < 27 * test/lisp/net/tramp-tests.el (tramp-test10-write-region-file-precious-flag): Skip for Emacs < 27. --- diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index e35be0e3121..cce4d4e289b 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -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