diff options
author | Andrea Corallo <akrl@sdf.org> | 2021-04-19 18:46:50 +0200 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2021-04-19 18:46:50 +0200 |
commit | b5c76530fab4b99e76249bfb9a105b30bef4ce67 (patch) | |
tree | 319d7a65b6f818cebed9833534a423fbcb79a9b5 /test/lisp/emacs-lisp/cl-macs-tests.el | |
parent | e54066f3d459f67a1ee4e44552bf0356d010e03f (diff) | |
parent | 0a4dc70830f5e8286b47120cabc750cca07a75c1 (diff) | |
download | emacs-b5c76530fab4b99e76249bfb9a105b30bef4ce67.tar.gz emacs-b5c76530fab4b99e76249bfb9a105b30bef4ce67.tar.bz2 emacs-b5c76530fab4b99e76249bfb9a105b30bef4ce67.zip |
Merge remote-tracking branch 'savannah/master' into native-comp
Diffstat (limited to 'test/lisp/emacs-lisp/cl-macs-tests.el')
-rw-r--r-- | test/lisp/emacs-lisp/cl-macs-tests.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/lisp/emacs-lisp/cl-macs-tests.el b/test/lisp/emacs-lisp/cl-macs-tests.el index 5c3e603b92e..f4e2e46a019 100644 --- a/test/lisp/emacs-lisp/cl-macs-tests.el +++ b/test/lisp/emacs-lisp/cl-macs-tests.el @@ -630,12 +630,13 @@ collection clause." (and xs (progn (setq n1 (1+ n)) (len2 (cdr xs) n1)))))) - ;; Tail call in error handler. + ;; Tail calls in error and success handlers. (len3 (xs n) (if xs - (condition-case nil - (/ 1 0) - (arith-error (len3 (cdr xs) (1+ n)))) + (condition-case k + (/ 1 (logand n 1)) + (arith-error (len3 (cdr xs) (1+ n))) + (:success (len3 (cdr xs) (+ n k)))) n))) (should (equal (len nil 0) 0)) (should (equal (len2 nil 0) 0)) |