aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2015-11-12 17:54:48 +0100
committerJuanma Barranquero2015-11-12 17:54:48 +0100
commit9dd7da9945c16aa343080a535ed74eeecf769fd1 (patch)
tree5f4a34fe7a14114b1ad6081c2b963ef4cb6facfc
parentaa17de9056ccce4f080b910bf5eede3df4a12d5c (diff)
downloademacs-9dd7da9945c16aa343080a535ed74eeecf769fd1.tar.gz
emacs-9dd7da9945c16aa343080a535ed74eeecf769fd1.zip
* test/automated/keymap-tests.el: New test file
-rw-r--r--test/automated/keymap-tests.el39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/automated/keymap-tests.el b/test/automated/keymap-tests.el
new file mode 100644
index 00000000000..482ed27cd4f
--- /dev/null
+++ b/test/automated/keymap-tests.el
@@ -0,0 +1,39 @@
1;;; keymap-tests.el --- Test suite for src/keymap.c
2
3;; Copyright (C) 2015 Free Software Foundation, Inc.
4
5;; Author: Juanma Barranquero <lekktu@gmail.com>
6
7;; This file is part of GNU Emacs.
8
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.
13
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.
18
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/>.
21
22;;; Code:
23
24(require 'ert)
25
26(ert-deftest keymap-store_in_keymap-FASTINT-on-nonchars ()
27 "Check for bug fixed in \"Fix assertion violation in define-key\",
28commit 86c19714b097aa477d339ed99ffb5136c755a046."
29 (should-not (eq (lookup-key Buffer-menu-mode-map [32]) 'undefined))
30 ;; This will cause an assertion violation if the bug is present.
31 ;; We could run an inferior Emacs process and check for the return
32 ;; status, but in some environments an assertion failure triggers
33 ;; an abort dialog that requires user intervention anyway.
34 (define-key Buffer-menu-mode-map [(32 . 126)] 'undefined)
35 (should (eq (lookup-key Buffer-menu-mode-map [32]) 'undefined)))
36
37(provide 'keymap-tests)
38
39;;; keymap-tests.el ends here