diff options
Diffstat (limited to 'test/src/buffer-tests.el')
| -rw-r--r-- | test/src/buffer-tests.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el index f6a18acaa64..13d48b31a4f 100644 --- a/test/src/buffer-tests.el +++ b/test/src/buffer-tests.el | |||
| @@ -1515,7 +1515,11 @@ with parameters from the *Messages* buffer modification." | |||
| 1515 | (should (eq (buffer-modified-p) 'autosaved)) | 1515 | (should (eq (buffer-modified-p) 'autosaved)) |
| 1516 | (insert "zot") | 1516 | (insert "zot") |
| 1517 | (restore-buffer-modified-p 'autosaved) | 1517 | (restore-buffer-modified-p 'autosaved) |
| 1518 | (should (eq (buffer-modified-p) 'autosaved)))) | 1518 | (should (eq (buffer-modified-p) 'autosaved)) |
| 1519 | |||
| 1520 | ;; Clean up. | ||
| 1521 | (when (file-exists-p buffer-auto-save-file-name) | ||
| 1522 | (delete-file buffer-auto-save-file-name)))) | ||
| 1519 | 1523 | ||
| 1520 | (ert-with-temp-file file | 1524 | (ert-with-temp-file file |
| 1521 | (with-current-buffer (find-file file) | 1525 | (with-current-buffer (find-file file) |