]> git.eshelyaron.com Git - emacs.git/commitdiff
; * test/lisp/dired-tests.el (dired-test-bug27243-03): fix unwind
authorMattias Engdegård <mattiase@acm.org>
Mon, 14 Aug 2023 14:53:13 +0000 (16:53 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 14 Aug 2023 15:03:44 +0000 (17:03 +0200)
test/lisp/dired-tests.el

index 0701b229edd326137f16160a57724425066341d7..8f2b9af09c0e2c8372d8c53904d538a0357e0016 100644 (file)
             (let ((buffers (find-file (concat (file-name-as-directory test-dir)
                                               "*")
                                       t)))
+              (setq allbufs (append buffers allbufs))
               (dolist (buf buffers)
                 (let ((pt (with-current-buffer buf (point))))
                   (switch-to-buffer (find-file-noselect test-dir))
                   (find-file (buffer-name buf))
-                  (should (equal (point) pt))))
-              (append buffers allbufs)))
+                  (should (equal (point) pt))))))
         (dolist (buf allbufs)
           (when (buffer-live-p buf) (kill-buffer buf)))))))