]> git.eshelyaron.com Git - emacs.git/commit
Don't confuse errors with nil in bytecomp-tests.el
authorMattias Engdegård <mattiase@acm.org>
Sun, 5 Jul 2020 15:44:34 +0000 (17:44 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 5 Jul 2020 15:44:34 +0000 (17:44 +0200)
commit58e27ebb9210cbbd0c3a10992627bc1e1de89f32
treec7d69ab3afd4432120e09e6b7aa9061d4c14d765
parentc10293e168f752607ae51edd09922505927c29b1
Don't confuse errors with nil in bytecomp-tests.el

* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-check-1)
(bytecomp-explain-1, test-byte-opt-arithmetic, bytecomp-lexbind-check-1)
(bytecomp-lexbind-explain-1):
If an expression raises an error when evaluated, don't treat it as if
it had succeeded with the value nil; use 'bytecomp-check-error' as the
result instead.
test/lisp/emacs-lisp/bytecomp-tests.el