From 0a26b2621752ada1a43992ee7391b1c56bd6a6b0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 16 Nov 2022 16:37:23 +0200 Subject: [PATCH] Reduce buffer-tests noisiness even more * test/src/buffer-tests.el (test-kill-buffer-auto-save-default) (test-kill-buffer-auto-save-delete-yes) (test-kill-buffer-auto-save-delete-no) (test-buffer-modifications, test-restore-buffer-modified-p): Shut up auto-save messages. (Bug#59028) --- test/src/buffer-tests.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el index 2b6c974159b..0e6d717cbb0 100644 --- a/test/src/buffer-tests.el +++ b/test/src/buffer-tests.el @@ -8422,7 +8422,7 @@ Finally, kill the buffer and its temporary file." (insert "foo\n") (should buffer-auto-save-file-name) (setq auto-save buffer-auto-save-file-name) - (do-auto-save) + (do-auto-save t) (should (file-exists-p auto-save)) (kill-buffer (current-buffer)) (should (file-exists-p auto-save))))))) @@ -8437,7 +8437,7 @@ Finally, kill the buffer and its temporary file." (insert "foo\n") (should buffer-auto-save-file-name) (setq auto-save buffer-auto-save-file-name) - (do-auto-save) + (do-auto-save t) (should (file-exists-p auto-save)) ;; This should delete the auto-save file. (kill-buffer (current-buffer)) @@ -8453,7 +8453,7 @@ Finally, kill the buffer and its temporary file." (insert "foo\n") (should buffer-auto-save-file-name) (setq auto-save buffer-auto-save-file-name) - (do-auto-save) + (do-auto-save t) (should (file-exists-p auto-save)) ;; This should not delete the auto-save file. (kill-buffer (current-buffer)) @@ -8468,7 +8468,7 @@ Finally, kill the buffer and its temporary file." (insert "foo") (should (buffer-modified-p)) (should-not (eq (buffer-modified-p) 'autosaved)) - (do-auto-save nil t) + (do-auto-save t t) (should (eq (buffer-modified-p) 'autosaved)) (with-silent-modifications (put-text-property 1 3 'face 'bold)) @@ -8492,7 +8492,7 @@ Finally, kill the buffer and its temporary file." (restore-buffer-modified-p nil) (should-not (buffer-modified-p)) (insert "bar") - (do-auto-save nil t) + (do-auto-save t t) (should (eq (buffer-modified-p) 'autosaved)) (insert "zot") (restore-buffer-modified-p 'autosaved) -- 2.39.5