diff options
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/help-fns-tests.el | 4 | ||||
| -rw-r--r-- | test/lisp/subr-tests.el | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/test/lisp/help-fns-tests.el b/test/lisp/help-fns-tests.el index 4d715cde1d5..243a45ae6d2 100644 --- a/test/lisp/help-fns-tests.el +++ b/test/lisp/help-fns-tests.el | |||
| @@ -181,10 +181,6 @@ Return first line of the output of (describe-function-1 FUNC)." | |||
| 181 | (ert-deftest help-fns--analyze-function-recursive () | 181 | (ert-deftest help-fns--analyze-function-recursive () |
| 182 | (defalias 'help-fns--a 'help-fns--b) | 182 | (defalias 'help-fns--a 'help-fns--b) |
| 183 | (should (equal (help-fns--analyze-function 'help-fns--a) | 183 | (should (equal (help-fns--analyze-function 'help-fns--a) |
| 184 | '(help-fns--a help-fns--b t help-fns--b))) | ||
| 185 | ;; Make a loop and see that it doesn't infloop. | ||
| 186 | (defalias 'help-fns--b 'help-fns--a) | ||
| 187 | (should (equal (help-fns--analyze-function 'help-fns--a) | ||
| 188 | '(help-fns--a help-fns--b t help-fns--b)))) | 184 | '(help-fns--a help-fns--b t help-fns--b)))) |
| 189 | 185 | ||
| 190 | ;;; help-fns-tests.el ends here | 186 | ;;; help-fns-tests.el ends here |
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 1abd3be4ea1..d5efabc1370 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el | |||
| @@ -1058,10 +1058,12 @@ final or penultimate step during initialization.")) | |||
| 1058 | '(subr-tests--b subr-tests--c))) | 1058 | '(subr-tests--b subr-tests--c))) |
| 1059 | 1059 | ||
| 1060 | (defalias 'subr-tests--d 'subr-tests--e) | 1060 | (defalias 'subr-tests--d 'subr-tests--e) |
| 1061 | (defalias 'subr-tests--e 'subr-tests--d) | 1061 | (should (equal (function-alias-p 'subr-tests--d) |
| 1062 | (should-error (function-alias-p 'subr-tests--d)) | 1062 | '(subr-tests--e))) |
| 1063 | (should (equal (function-alias-p 'subr-tests--d t) | 1063 | |
| 1064 | '(subr-tests--e)))) | 1064 | (fset 'subr-tests--f 'subr-tests--a) |
| 1065 | (should (equal (function-alias-p 'subr-tests--f) | ||
| 1066 | '(subr-tests--a subr-tests--b subr-tests--c)))) | ||
| 1065 | 1067 | ||
| 1066 | (ert-deftest test-readablep () | 1068 | (ert-deftest test-readablep () |
| 1067 | (should (readablep "foo")) | 1069 | (should (readablep "foo")) |