Conditionalize result of a bytecomp test

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test--switch-duplicates):
Apparently the result depends on byte-compile-cond-use-jump-table.
This commit is contained in:
Glenn Morris 2019-07-09 03:25:13 -07:00
parent fb5d70c6fc
commit 95dce77c5e

View file

@ -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)