From 5e09ace07435b3897db7d113c9e813aa6856fc63 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 13 Jun 2019 20:24:41 -0400 Subject: [PATCH] Stop a tramp test leaving a file behind * test/lisp/net/tramp-tests.el (tramp-test10-write-region-file-precious-flag): Avoid leaving a backup file after we are done. --- test/lisp/net/tramp-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index d4067becf93..b9868ff6a87 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -2346,6 +2346,7 @@ This checks also `file-name-as-directory', `file-name-directory', ;; Run the test. (advice-add 'write-region :before advice) (setq-local file-precious-flag t) + (setq-local backup-inhibited t) (insert "bar") (should (null (save-buffer))) (should-not (cl-member tmp-name written-files :test #'string=))) -- 2.39.5