]> git.eshelyaron.com Git - emacs.git/commitdiff
Reduce buffer-tests noisiness even more
authorEli Zaretskii <eliz@gnu.org>
Wed, 16 Nov 2022 14:37:23 +0000 (16:37 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 16 Nov 2022 14:37:23 +0000 (16:37 +0200)
* 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

index 2b6c974159bff820e32977af73698e6e9ae3e4f6..0e6d717cbb067eea426f78e83e6094416cc52635 100644 (file)
@@ -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)