summaryrefslogtreecommitdiff
path: root/test/lisp/net/tramp-tests.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2019-06-13 20:24:41 -0400
committerGlenn Morris <rgm@gnu.org>2019-06-13 20:24:41 -0400
commit5e09ace07435b3897db7d113c9e813aa6856fc63 (patch)
treeb240e9ed50012f376165aa674de7c0d13c5f54ae /test/lisp/net/tramp-tests.el
parent28ba9d542c7d57ba26192e2f87317594cc43bfcc (diff)
downloademacs-5e09ace07435b3897db7d113c9e813aa6856fc63.tar.gz
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.
Diffstat (limited to 'test/lisp/net/tramp-tests.el')
-rw-r--r--test/lisp/net/tramp-tests.el1
1 files changed, 1 insertions, 0 deletions
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=)))