* test/src/buffer-tests.el (test-restore-buffer-modified-p): Clean
up autosave file in /tmp.
(should (eq (buffer-modified-p) 'autosaved))
(insert "zot")
(restore-buffer-modified-p 'autosaved)
- (should (eq (buffer-modified-p) 'autosaved))))
+ (should (eq (buffer-modified-p) 'autosaved))
+
+ ;; Clean up.
+ (when (file-exists-p buffer-auto-save-file-name)
+ (delete-file buffer-auto-save-file-name))))
(ert-with-temp-file file
(with-current-buffer (find-file file)