From: Glenn Morris Date: Fri, 14 Jun 2019 00:24:41 +0000 (-0400) Subject: Stop a tramp test leaving a file behind X-Git-Tag: emacs-27.0.90~2552 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5e09ace07435b3897db7d113c9e813aa6856fc63;p=emacs.git 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. --- 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=)))