aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2014-07-20 21:34:03 -0400
committerStefan Monnier2014-07-20 21:34:03 -0400
commit4ce2720e1c097efb497d9f142901402d3cbb5f25 (patch)
tree1c295b92a391e03b0612254e96fd23c5133fbb23 /test
parent3241dc268ef235008cd226b7c2a7f12e6fae20da (diff)
downloademacs-4ce2720e1c097efb497d9f142901402d3cbb5f25.tar.gz
emacs-4ce2720e1c097efb497d9f142901402d3cbb5f25.zip
* test/automated/advice-tests.el (advice-test-call-interactively): Make sure
the function's definition is fully restored at the end.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/automated/advice-tests.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 6e2f89157e3..dca2f7e14fe 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12014-07-21 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * automated/advice-tests.el (advice-test-call-interactively): Make sure
4 the function's definition is fully restored at the end.
5
12014-07-12 Fabián Ezequiel Gallina <fgallina@gnu.org> 62014-07-12 Fabián Ezequiel Gallina <fgallina@gnu.org>
2 7
3 * automated/python-tests.el (python-indent-block-enders-1) 8 * automated/python-tests.el (python-indent-block-enders-1)
diff --git a/test/automated/advice-tests.el b/test/automated/advice-tests.el
index a87d979f919..bbb4adda9fd 100644
--- a/test/automated/advice-tests.el
+++ b/test/automated/advice-tests.el
@@ -160,7 +160,8 @@ function being an around advice."
160 (advice-add 'call-interactively :before #'ignore) 160 (advice-add 'call-interactively :before #'ignore)
161 (should (equal (sm-test7.4) '(1 . nil))) 161 (should (equal (sm-test7.4) '(1 . nil)))
162 (should (equal (call-interactively 'sm-test7.4) '(1 . t)))) 162 (should (equal (call-interactively 'sm-test7.4) '(1 . t))))
163 (fset 'call-interactively old)))) 163 (advice-remove 'call-interactively #'ignore)
164 (should (eq (symbol-function 'call-interactively) old)))))
164 165
165(ert-deftest advice-test-interactive () 166(ert-deftest advice-test-interactive ()
166 "Check handling of interactive spec." 167 "Check handling of interactive spec."