emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0a26b26217 2/2: Reduce buffer-tests noisiness even more


From: Eli Zaretskii
Subject: master 0a26b26217 2/2: Reduce buffer-tests noisiness even more
Date: Wed, 16 Nov 2022 09:38:23 -0500 (EST)

branch: master
commit 0a26b2621752ada1a43992ee7391b1c56bd6a6b0
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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 2b6c974159..0e6d717cbb 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]