projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb5d70c
)
Conditionalize result of a bytecomp test
author
Glenn Morris
<rgm@gnu.org>
Tue, 9 Jul 2019 10:25:13 +0000
(
03:25
-0700)
committer
Glenn Morris
<rgm@gnu.org>
Tue, 9 Jul 2019 10:27:26 +0000
(
03:27
-0700)
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test--switch-duplicates):
Apparently the result depends on byte-compile-cond-use-jump-table.
test/lisp/emacs-lisp/bytecomp-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/emacs-lisp/bytecomp-tests.el
b/test/lisp/emacs-lisp/bytecomp-tests.el
index 5bd36898702babd5aac3018ad536aa179c42ae5a..94ecdc54daa0c2451c71a4c8411fafe04732ea2d 100644
(file)
--- a/
test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/
test/lisp/emacs-lisp/bytecomp-tests.el
@@
-686,6
+686,7
@@
literals (Bug#20852)."
(ert-deftest bytecomp-test--switch-duplicates ()
"Check that duplicates in switches are eliminated correctly (bug#35770)."
+ :expected-result (if byte-compile-cond-use-jump-table :passed :failed)
(dolist (params
'(((lambda (x)
(cond ((eq x 'a) 111)