aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-06-13 20:24:41 -0400
committerGlenn Morris2019-06-13 20:24:41 -0400
commit5e09ace07435b3897db7d113c9e813aa6856fc63 (patch)
treeb240e9ed50012f376165aa674de7c0d13c5f54ae
parent28ba9d542c7d57ba26192e2f87317594cc43bfcc (diff)
downloademacs-5e09ace07435b3897db7d113c9e813aa6856fc63.tar.gz
emacs-5e09ace07435b3897db7d113c9e813aa6856fc63.zip
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.
-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',
2346 ;; Run the test. 2346 ;; Run the test.
2347 (advice-add 'write-region :before advice) 2347 (advice-add 'write-region :before advice)
2348 (setq-local file-precious-flag t) 2348 (setq-local file-precious-flag t)
2349 (setq-local backup-inhibited t)
2349 (insert "bar") 2350 (insert "bar")
2350 (should (null (save-buffer))) 2351 (should (null (save-buffer)))
2351 (should-not (cl-member tmp-name written-files :test #'string=))) 2352 (should-not (cl-member tmp-name written-files :test #'string=)))