diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/advice-tests.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/automated/advice-tests.el b/test/automated/advice-tests.el index 8f9bf54114c..80321f8f3f9 100644 --- a/test/automated/advice-tests.el +++ b/test/automated/advice-tests.el | |||
| @@ -80,6 +80,13 @@ | |||
| 80 | (sm-test5 6) 100.1) | 80 | (sm-test5 6) 100.1) |
| 81 | ((advice-remove 'sm-test5 (lambda (f y) (* (funcall f y) 5))) | 81 | ((advice-remove 'sm-test5 (lambda (f y) (* (funcall f y) 5))) |
| 82 | (sm-test5 6) 20.1) | 82 | (sm-test5 6) 20.1) |
| 83 | |||
| 84 | ;; This used to signal an error (bug#12858). | ||
| 85 | ((autoload 'sm-test6 "foo") | ||
| 86 | (defadvice sm-test6 (around test activate) | ||
| 87 | ad-do-it) | ||
| 88 | t t) | ||
| 89 | |||
| 83 | )) | 90 | )) |
| 84 | 91 | ||
| 85 | (ert-deftest advice-tests () | 92 | (ert-deftest advice-tests () |