From 173fd94c11655bde2edf4cd1ee983e025aa06a79 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 8 May 2019 09:44:22 +0200 Subject: [PATCH] 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. --- test/lisp/net/tramp-tests.el | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2