summaryrefslogtreecommitdiff
path: root/test/lisp/server-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/server-tests.el')
-rw-r--r--test/lisp/server-tests.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lisp/server-tests.el b/test/lisp/server-tests.el
index ebf84481c61..5ef66052c80 100644
--- a/test/lisp/server-tests.el
+++ b/test/lisp/server-tests.el
@@ -218,8 +218,8 @@ long as this works, the problem in bug#58877 shouldn't occur."
(eq (terminal-live-p terminal) t)
(not (eq system-type 'windows-nt)))
(delete-terminal terminal)))
- ;; Delete the created frame.
- (delete-frame (car (cl-set-difference (frame-list) starting-frames))
- t)))
+ ;; If there are any new frames remaining, delete them.
+ (mapc (lambda (frame) (delete-frame frame t))
+ (cl-set-difference (frame-list) starting-frames))))
;;; server-tests.el ends here