Commit 5e09ace0 authored by Glenn Morris's avatar Glenn Morris

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.
parent 28ba9d54
Pipeline #2046 failed with stage
in 54 minutes and 43 seconds
......@@ -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=)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment