1 ;;; buff-menu-tests.el --- Test suite for buff-menu.el -*- lexical-binding: t -*-
3 ;; Copyright (C) 2016-2017 Free Software Foundation, Inc.
5 ;; Author: Tino Calancha <tino.calancha@gmail.com>
7 ;; This file is part of GNU Emacs.
9 ;; GNU Emacs is free software: you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation, either version 3 of the License, or
12 ;; (at your option) any later version.
14 ;; GNU Emacs is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28 (ert-deftest buff-menu-24962
()
29 "Test for http://debbugs.gnu.org/24962 ."
30 (let ((file (expand-file-name "foo" temporary-file-directory
))
34 (write-region "foo" nil file
)
35 (setq buf
(find-file file
))
36 (rename-buffer " foo")
38 (with-current-buffer "*Buffer List*"
39 (should (string= " foo" (buffer-name (Buffer-menu-buffer))))))
40 (and (buffer-live-p buf
) (kill-buffer buf
))
41 (and (file-exists-p file
) (delete-file file
)))))
43 (provide 'buff-menu-tests
)
45 ;;; buff-menu-tests.el ends here