]> git.eshelyaron.com Git - emacs.git/commitdiff
Stop a tramp test leaving a file behind
authorGlenn Morris <rgm@gnu.org>
Fri, 14 Jun 2019 00:24:41 +0000 (20:24 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 14 Jun 2019 00:24:41 +0000 (20:24 -0400)
* 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

index d4067becf93dc9ae2df556f0dfaf854642603cf5..b9868ff6a875c14f581d94a0a286cff60ef5d004 100644 (file)
@@ -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=)))