diff options
author | Glenn Morris <rgm@gnu.org> | 2019-07-09 03:25:13 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2019-07-09 03:27:26 -0700 |
commit | 95dce77c5ecb46cff62c2bc45c2a239872b5f38c (patch) | |
tree | 748123cf23be0d4678a5751b8ddb959c01b873e3 /test/lisp | |
parent | fb5d70c6fc547f75c2971d3d91da63ecec245fd1 (diff) | |
download | emacs-95dce77c5ecb46cff62c2bc45c2a239872b5f38c.tar.gz emacs-95dce77c5ecb46cff62c2bc45c2a239872b5f38c.tar.bz2 emacs-95dce77c5ecb46cff62c2bc45c2a239872b5f38c.zip |
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.
Diffstat (limited to 'test/lisp')
-rw-r--r-- | test/lisp/emacs-lisp/bytecomp-tests.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 5bd36898702..94ecdc54daa 100644 --- 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) |